Class: CloneBayEsiApiService
Make authenticated ESI API requests.
Includes methods for GET, POST, PUT, and DELETE requests. The requests are authenticated. Upon failing due to an expired access token, they will automatically refresh the tokens and retry the failed request.
By default, the methods are limited to the ESI API URL and check that the given character is owned by the given user. These protections can be turned off in EsiApiRequestOptions
.
See EsiApiRequestOptions for method param types.
Methods
delete
▸ delete<T
>(options
): Promise
<AxiosResponse
<T
, any
>>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
options | EsiApiRequestOptions |
Returns
Promise
<AxiosResponse
<T
, any
>>
Defined in
lib/src/api/clone-bay-esi-api.service.ts:37
get
▸ get<T
>(options
): Promise
<AxiosResponse
<T
, any
>>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
options | EsiApiRequestOptions |
Returns
Promise
<AxiosResponse
<T
, any
>>
Defined in
lib/src/api/clone-bay-esi-api.service.ts:25
post
▸ post<T
>(options
): Promise
<AxiosResponse
<T
, any
>>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
options | EsiApiRequestOptions |
Returns
Promise
<AxiosResponse
<T
, any
>>
Defined in
lib/src/api/clone-bay-esi-api.service.ts:29
put
▸ put<T
>(options
): Promise
<AxiosResponse
<T
, any
>>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
options | EsiApiRequestOptions |
Returns
Promise
<AxiosResponse
<T
, any
>>