POST api/desktop/gettokenbyauthorizationcode

Lấy token theo AuthorizationCode trên WebView

Request Information

URI Parameters

None.

Body Parameters

Tham số

GetTokenByAuthorizationCodeParameter
NameDescriptionTypeAdditional information
ClientId

string

None.

ClientSecret

string

None.

AuthorizationCode

string

None.

RedirectUri

string

None.

GrantType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientId": "sample string 1",
  "ClientSecret": "sample string 2",
  "AuthorizationCode": "sample string 3",
  "RedirectUri": "sample string 4",
  "GrantType": "sample string 5"
}

text/xml

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

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>