POST api/Token/refresh

登入取得Token

Request Information

URI Parameters

None.

Body Parameters

refreshAction
NameDescriptionTypeAdditional information
refresh_token

refresh_token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "refresh_token": "sample string 1"
}

application/xml, text/xml

Sample:
<TokenController.refreshAction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iMOE_Back_End.Controllers">
  <refresh_token>sample string 1</refresh_token>
</TokenController.refreshAction>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Token
NameDescriptionTypeAdditional information
access_token

string

None.

refresh_token

string

None.

expires_in

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "access_token": "sample string 1",
  "refresh_token": "sample string 2",
  "expires_in": 3
}

application/xml, text/xml

Sample:
<Token xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iMOE_Back_End">
  <access_token>sample string 1</access_token>
  <expires_in>3</expires_in>
  <refresh_token>sample string 2</refresh_token>
</Token>