Constructors
constructor
- new Api(accessToken: string, region: string, locale?: string): Api
Parameters
accessToken: string
region: string
locale: string = 'en-US'
Returns Api
Properties
Private headers
headers: {}
Methods
Protected delete
- delete(url: string): Promise<any>
Parameters
Returns Promise<any>
Protected get
- get(url: string): Promise<any>
Parameters
Returns Promise<any>
Protected post
- post(url: string, data: {}): Promise<any>
Parameters
Returns Promise<any>
Protected put
- put(url: string, data?: {}): Promise<any>
Parameters
url: string
Optional data: {}
Returns Promise<any>