POST api/PMJAY/pmjay_get_accesstoken

Documentation for 'pmjay_get_accesstoken'.

Request Information

Parameters

NameDescriptionAdditional information
model
Documentation for 'model'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "State": "sample string 1",
  "AuthString": "sample string 2",
  "UserId": "sample string 3",
  "Password": "sample string 4"
}

application/xml, text/xml

Sample:
<PMJAYRequestModelGetToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLL.PMJAY">
  <AuthString>sample string 2</AuthString>
  <Password>sample string 4</Password>
  <State>sample string 1</State>
  <UserId>sample string 3</UserId>
</PMJAYRequestModelGetToken>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PMJAYRequestModelGetToken'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "AccessToken": "sample string 1",
  "Status": "sample string 2",
  "Remarks": "sample string 3",
  "State": "sample string 4"
}

application/xml, text/xml

Sample:
<PMJAYResponseModelGetToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLL.PMJAY">
  <AccessToken>sample string 1</AccessToken>
  <Remarks>sample string 3</Remarks>
  <State>sample string 4</State>
  <Status>sample string 2</Status>
</PMJAYResponseModelGetToken>