POST api/token/get_token

Use api_key and password to generate token

Request Information

Body Parameters

GetTokenModel
NameDescriptionTypeAdditional information
Password

Password MD5(KEY + AppId + Timestamp)

string

None.

AppId

AppId

integer

None.

Timestamp

UNIX Timestamp

integer

None.

Response Information

Resource Description

Return AccessToken

TokenResult
NameDescriptionTypeAdditional information
Result

Result

TokenOutputDto

None.

State

integer

None.

Msg

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": {
    "UserId": 1,
    "CustomerName": "sample string 2",
    "AccessToken": "sample string 3",
    "Expire": 4
  },
  "State": 1,
  "Msg": "sample string 2"
}

application/xml, text/xml

Sample:
<TokenResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.OpenApi.Models.ResponseModels">
  <Msg>sample string 2</Msg>
  <State>1</State>
  <Result>
    <AccessToken>sample string 3</AccessToken>
    <CustomerName>sample string 2</CustomerName>
    <Expire>4</Expire>
    <UserId>1</UserId>
  </Result>
</TokenResult>