Constructors
Methods
_makeRequest
- _makeRequest(
url: string,
token: string,
options?: RequestInit,
): Promise<Response> Parameters
- url: string
- token: string
- options: RequestInit = {}
Returns Promise<Response>
GET
- GET(token: string, endpoint: string): Promise<Response>
Parameters
- token: string
- endpoint: string
Returns Promise<Response>
POST
- POST(token: string, endpoint: string, body?: BodyInit): Promise<Response>
Parameters
- token: string
- endpoint: string
Optionalbody: BodyInit
Returns Promise<Response>
Handles basic HTTP requests to the API.