HTTP Status 200
Function validates your api key and returns an authentication token
-
auth_token Type: varchar
Authentication token that you can use to call other functions
-
Query Response Example
{ "code": 200, "auth_token": "47478d2cf0a301607ec57d..." }
Error Response Example
{ "code": "int", "message": "string" }
Parameters
Parameters that need to be sent in the request
-
Bearer Type: varchar
Api key
Authorization
Body data
None-
Example Request
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://rest.crmango.com/api/Login',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer apikey'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;