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

NameType
optionsEsiApiRequestOptions

Returns

Promise<AxiosResponse<T, any>>

Defined in

lib/src/api/clone-bay-esi-api.service.ts:37open in new window


get

get<T>(options): Promise<AxiosResponse<T, any>>

Type parameters

Name
T

Parameters

NameType
optionsEsiApiRequestOptions

Returns

Promise<AxiosResponse<T, any>>

Defined in

lib/src/api/clone-bay-esi-api.service.ts:25open in new window


post

post<T>(options): Promise<AxiosResponse<T, any>>

Type parameters

Name
T

Parameters

NameType
optionsEsiApiRequestOptions

Returns

Promise<AxiosResponse<T, any>>

Defined in

lib/src/api/clone-bay-esi-api.service.ts:29open in new window


put

put<T>(options): Promise<AxiosResponse<T, any>>

Type parameters

Name
T

Parameters

NameType
optionsEsiApiRequestOptions

Returns

Promise<AxiosResponse<T, any>>

Defined in

lib/src/api/clone-bay-esi-api.service.ts:33open in new window