POST api/desktop/getrefreshtoken

Lấy token theo refresh token

Request Information

URI Parameters

None.

Body Parameters

Tham số

GetRefreshTokenParameter
NameDescriptionTypeAdditional information
GrantType

string

None.

ClientId

string

None.

ClientSecret

string

None.

RefreshToken

string

None.

Request Formats

application/json, text/json

Sample:
{
  "GrantType": "sample string 1",
  "ClientId": "sample string 2",
  "ClientSecret": "sample string 3",
  "RefreshToken": "sample string 4"
}

text/xml

Sample:
<GetRefreshTokenParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.Auth.Entity.Param">
  <ClientId>sample string 2</ClientId>
  <ClientSecret>sample string 3</ClientSecret>
  <GrantType>sample string 1</GrantType>
  <RefreshToken>sample string 4</RefreshToken>
</GetRefreshTokenParameter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResult
NameDescriptionTypeAdditional information
Status

RequestStatus

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": {
    "Type": "sample string 1",
    "Code": 2,
    "Message": "sample string 3",
    "Error": true,
    "ErrorCode": 5
  },
  "Data": {}
}

text/xml

Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.Auth.Entity">
  <Data />
  <Status>
    <Code>2</Code>
    <Error>true</Error>
    <ErrorCode>5</ErrorCode>
    <Message>sample string 3</Message>
    <Type>sample string 1</Type>
  </Status>
</ServiceResult>