Use the code after a user authorizes your app to get an access token and refresh token. The access token will be used to authenticate requests that your app makes. Access tokens expire after seven hours, so you can use the refresh token to get a new access token when the first access token expires.

Request

URI Parameters
NameDescriptionTypeAdditional information
clientId

Used to indicate Client Id designated to the App.

string

Required

clientSecret

Used to indicate Client Secret designated to the App.

string

Required

Body Parameters

None.

Sample API Request
GET api/OAuth/GenerateToken?clientId={clientId}&clientSecret={clientSecret}

Response

Resource Description

Returns the success/error status and message.

ResponseMessage
NameDescriptionTypeAdditional information
Status

The status of the request, namely Success or Error.

MessageStatus

None.

Message

The response message containing either message or requested data.

string

None.

Sample API Response
GET api/OAuth/GenerateToken?clientId={clientId}&clientSecret={clientSecret}