POST api/token

Request Information

URI Parameters

None.

Body Parameters

GetTokenRequest
NameDescriptionTypeAdditional information
userName

string

None.

userPassword

string

None.

Request Formats

application/json, text/json

Sample:
{
  "userName": "sample string 1",
  "userPassword": "sample string 2"
}

application/xml, text/xml

Sample:
<GetTokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ST_Catalogos.Models">
  <userName>sample string 1</userName>
  <userPassword>sample string 2</userPassword>
</GetTokenRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetTokenResponse
NameDescriptionTypeAdditional information
access_token

string

None.

token_type

string

None.

expires_in

integer

None.

scope

string

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "access_token": "sample string 1",
  "token_type": "sample string 2",
  "expires_in": 3,
  "scope": "sample string 4",
  "Message": "sample string 5"
}

application/xml, text/xml

Sample:
<GetTokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ST_Catalogos.Models">
  <Message>sample string 5</Message>
  <access_token>sample string 1</access_token>
  <expires_in>3</expires_in>
  <scope>sample string 4</scope>
  <token_type>sample string 2</token_type>
</GetTokenResponse>