- Preparing search index...
- The search index is not available
@sasjs/adapter
Methods
clearCsrfTokens
- clearCsrfTokens(): void
-
Returns void
clearLocalStorageTokens
- clearLocalStorageTokens(): void
-
Returns void
delete
- delete<T>(url: string, accessToken: undefined | string): Promise<{
etag: string;
result: T;
}>
-
Parameters
-
url: string
-
accessToken: undefined | string
Returns Promise<{
etag: string;
result: T;
}>
get
- get<T>(url: string, accessToken: undefined | string, contentType: string, overrideHeaders: {
[key: string]: string | number;
}): Promise<{
etag: string;
result: T;
}>
-
Parameters
-
url: string
-
accessToken: undefined | string
-
contentType: string
-
overrideHeaders: {
[key: string]: string | number;
}
-
[key: string]: string | number
Returns Promise<{
etag: string;
result: T;
}>
getBaseUrl
- getBaseUrl(): string
-
Returns string
getCsrfToken
- getCsrfToken(type: "general" | "file"): undefined | CsrfToken
-
Returns undefined | CsrfToken
post
- post<T>(url: string, data: any, accessToken: undefined | string, contentType: string, overrideHeaders: {
[key: string]: string | number;
}): Promise<{
etag: string;
result: T;
}>
-
Parameters
-
url: string
-
data: any
-
accessToken: undefined | string
-
contentType: string
-
overrideHeaders: {
[key: string]: string | number;
}
-
[key: string]: string | number
Returns Promise<{
etag: string;
result: T;
}>
put
- put<T>(url: string, data: any, accessToken: undefined | string, overrideHeaders: {
[key: string]: string | number;
}): Promise<{
etag: string;
result: T;
}>
-
Parameters
-
url: string
-
data: any
-
accessToken: undefined | string
-
overrideHeaders: {
[key: string]: string | number;
}
-
[key: string]: string | number
Returns Promise<{
etag: string;
result: T;
}>
saveLocalStorageToken
- saveLocalStorageToken(accessToken: string, refreshToken: string): void
-
Parameters
-
accessToken: string
-
refreshToken: string
Returns void