Check Token Status
Authenticate method validates the request and returns the token status.In case of session expiry or log outs, the authenticate method needs to be called again.The TokenId is managed internally, so it should not be included in the API request payload. In case of "Invalid Token" (ErrorCode 6) in response, please re-generate a fresh token to proceed further.A token is valid for 24 hours (from 00:00 AM to 11:59 PM).
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
RegenerateToken
string
RegenerateToken (Ex-RegenerateToken="Yes")
Only pass this when In "search" method you get "Invalid Token" or "Token Expired" error message.
REQUEST
API Endpoint: https://www.abengines.com/api/v1/travel-api/flights/
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/flights/?action=createToken
Response
The API returns an HTTP response, which generally includes the result of the request invocation
{
"Token_Status": "SUCCESS",
}









