POST api/Apps/Authenticate

Generates an Access Token for use with the API.

Request Information

URI Parameters

None.

Body Parameters

The AppCredential class

AppCredential
NameDescriptionTypeAdditional information
ApiKey

string

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<AppCredential xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FaceOffers.Api.Models">
  <ApiKey>sample string 1</ApiKey>
</AppCredential>

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 'AppCredential'.

Response Information

Resource Description

Returns an Auth Token

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.