POST api/LoginEx/GetToken

Documentation for 'GetToken'.

Request Information

Parameters

NameDescriptionAdditional information
request
Documentation for 'request'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "content_server_name": "sample string 2",
  "company_uuid": "sample string 3"
}

application/xml, text/xml

Sample:
<GetTokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MMS.RestApi.Entities.NewAPI.Login">
  <code>sample string 1</code>
  <company_uuid>sample string 3</company_uuid>
  <content_server_name>sample string 2</content_server_name>
</GetTokenRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "expires_in": 2,
  "scope": "sample string 3",
  "token_type": "sample string 4",
  "is_success": true,
  "error_message": "sample string 6",
  "exception_name": "sample string 7",
  "error_code": 8
}

application/xml, text/xml

Sample:
<TokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MMS.RestApi.Entities.NewAPI.Login">
  <error_code xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">8</error_code>
  <error_message xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 6</error_message>
  <exception_name xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">sample string 7</exception_name>
  <is_success xmlns="http://schemas.datacontract.org/2004/07/Mandoe.Framework.WebApi">true</is_success>
  <expires_in>2</expires_in>
  <scope>sample string 3</scope>
  <token>sample string 1</token>
  <token_type>sample string 4</token_type>
</TokenResponse>