- Preparing search index...
- The search index is not available
rubic-sdk
Methods
get
- get<ResponseBody>(url: string, options?: {
headers?: {
[header: string]: string;
};
params?: {
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
};
}): Promise<ResponseBody>
-
Parameters
-
url: string
-
Optional
options: {
headers?: {
[header: string]: string;
};
params?: {
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
};
}
-
Optional
headers?: {
[header: string]: string;
}
-
Optional
params?: {
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
}
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>
Returns Promise<ResponseBody>
post
- post<ResponseBody>(url: string, body: Object, options?: {
headers?: {
[header: string]: string;
};
}): Promise<ResponseBody>
-
Parameters
-
url: string
-
body: Object
-
Optional
options: {
headers?: {
[header: string]: string;
};
}
-
Optional
headers?: {
[header: string]: string;
}
Returns Promise<ResponseBody>
Http client, used to get and send http requests.