POST api/Token
Request Information
URI Parameters
None.
Body Parameters
OAuthRequestName | Description | Type | Additional information |
---|---|---|---|
grant_type | string |
Required |
|
username | string |
Required |
|
password | string |
Required |
Request Formats
application/json, text/json
Sample:
{ "grant_type": "sample string 1", "username": "sample string 2", "password": "sample string 3" }
application/xml, text/xml
Sample:
<OAuthController.OAuthRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IAB.SSO.Web.Api.Controllers"> <grant_type>sample string 1</grant_type> <password>sample string 3</password> <username>sample string 2</username> </OAuthController.OAuthRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
OAuthResponseName | 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:
<OAuthController.OAuthResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IAB.SSO.Web.Api.Controllers"> <access_token>sample string 1</access_token> <expires_in>3</expires_in> <token_type>sample string 2</token_type> </OAuthController.OAuthResponse>