POST v1/OAuth/Token
Request Information
URI Parameters
None.
Body Parameters
AuthTokenRequestName | Description | Type | Additional information |
---|---|---|---|
redirect_uri | string |
None. |
|
client_id | string |
None. |
|
client_secret | string |
None. |
|
grant_type | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "redirect_uri": "sample string 1", "client_id": "sample string 2", "client_secret": "sample string 3", "grant_type": "sample string 4" }
application/xml, text/xml
Sample:
<AuthTokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SkillsTX.Api.Models"> <ClientId>sample string 2</ClientId> <ClientSecret>sample string 3</ClientSecret> <GrantType>sample string 4</GrantType> <RedirectUri>sample string 1</RedirectUri> </AuthTokenRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AuthTokenName | Description | Type | Additional information |
---|---|---|---|
access_token | string |
None. |
|
refresh_token | string |
None. |
|
token_type | string |
None. |
|
expires_in | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "access_token": "sample string 1", "refresh_token": "sample string 2", "token_type": "sample string 3", "expires_in": 4 }
application/xml, text/xml
Sample:
<AuthToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SkillsTX.Api.Models"> <AccessToken>sample string 1</AccessToken> <ExpiresIn>4</ExpiresIn> <RefreshToken>sample string 2</RefreshToken> <TokenType>sample string 3</TokenType> </AuthToken>