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