Constructors
constructor
- new HTTPService(options: GotJSONOptions, debug?: boolean): HTTPService
-
Parameters
-
options: GotJSONOptions
-
Optional debug: boolean
Properties
Private Optional debug
debug: boolean
Private options
options: GotJSONOptions
Methods
get
- get(url: string, authenticationToken?: string): Promise<any>
-
Parameters
-
url: string
-
Optional authenticationToken: string
Returns Promise<any>
post
- post(url: string, data: GotJSONOptions): Promise<any>
-
Parameters
-
url: string
-
data: GotJSONOptions
Returns Promise<any>
Wrapper class for the request package. Used to make HTTP calls.