POST token
Request Information
URI Parameters
None.
Body Parameters
TokenRequestName | Description | Type | Additional information |
---|---|---|---|
username | string |
None. |
|
password | string |
None. |
|
grant_type | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "username": "sample string 1", "password": "sample string 2", "grant_type": "sample string 3" }
application/xml, text/xml
Sample:
<TokenUtilities.TokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fusion.WebAPI.Services"> <grant_type>sample string 3</grant_type> <password>sample string 2</password> <username>sample string 1</username> </TokenUtilities.TokenRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
TokenResponseName | Description | Type | Additional information |
---|---|---|---|
access_token | string |
None. |
|
token_type | string |
None. |
|
expires_in | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "access_token": "sample string 1", "token_type": "sample string 2", "expires_in": 3 }
application/xml, text/xml
Sample:
<TokenUtilities.TokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fusion.WebAPI.Services"> <access_token>sample string 1</access_token> <expires_in>3</expires_in> <token_type>sample string 2</token_type> </TokenUtilities.TokenResponse>