An HTTP client to query the Dell Premier APIs.

Constructor

new(clientId:String, clientSecret:String, ?options:Null<ClientOptions>)

Creates a new client.

Variables

@:value(null)write onlyaccessToken:Null<AccessToken> = null

The access token.

finalbaseUrl:Url

The base URL of the remote API endpoint.

finalisTest:Bool

Value indicating whether the client operates in test mode.

Methods

authorize():Promise<AccessToken>

Retrieves an authorization token.

@:value({ version : "2.0" })inlineorderStatus(version:String = "2.0"):OrderStatusApi

Returns the Order Status API endpoint.

@:value({ version : "2.0" })inlinepurchaseOrder(version:String = "2.0"):PurchaseOrderApi

Returns the Purchase Order API endpoint.

@:value({ version : "1.0" })inlinequote(version:String = "1.0"):QuoteApi

Returns the Quote API endpoint.