forked from JonathanBennett/AkamaiOPEN-edgegrid-node
-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathindex.d.ts
34 lines (29 loc) · 1.08 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { AxiosError, AxiosResponse } from "axios";
declare class EdgeGrid {
constructor(clientTokenOrOptions: string | object,
clientSecret?: string,
accessToken?: string,
host?: string,
debug?: boolean,
max_body?: number);
request: object;
config: object;
/**
* Sends the request and invokes the callback function.
*
* @param {Function} callback The callback function.
* @return EdgeGrid object (self)
*/
send(callback: (error: AxiosError, response?: AxiosResponse, body?: string) => void): EdgeGrid;
/**
* Builds the request using the properties of the local config Object.
*
* @param {Object} req The request Object. Can optionally contain a
* 'headersToSign' property: An ordered list header names
* that will be included in the signature. This will be
* provided by specific APIs.
* @return EdgeGrid object (self)
*/
auth(req: object): EdgeGrid;
}
export = EdgeGrid;