Authenticate
Authenticate method will return the Token ID that needs in every subsequent request(inbuilt passing).In case of session expiry or log outs, the authenticate method needs to be called again.
The token is the identification id against login session which will be used in every API call. In case of “Invalid Token” (ErrorCode: 6) in response, please re-generate a fresh token to proceed further.
Parameters
Name
Description
Accept
string
( header )
*required application/json
Accept - Encoding
string
( header )
*required gzip
Authorization
string
( header )
*required Your API Key
action
string
( query )
*required "createToken" as a parameter
REQUEST
API Endpoint: https://www.abengines.com/api/v1/travel-api/hotels/
header: array( 'Content-Type:application/json', 'Accept-encoding: gzip', 'PID:'ADD-YOUR-PID' 'x-api-key:'ADD-YOUR-KEY' ); GET: https://www.abengines.com/api/v1/travel-api/hotels/?action=createToken
Response
The API returns an HTTP response, which generally includes the result of the request invocation
{ "TokenId": "b33c72c2-d87b-4e6a-a8a2-3a476ddb0fd0", }