Introduction
- Awarathon has standard modules such as Assessments, Users, Reports and so on. Using AWARATHON REST API, you can retrieve the list of available module details.
- REST APIs are mainly developed to fetch Assessment level data
Purpose
- Provide module with full details.
Getting Started
All Awarathon Rest APIs require these two mandatory fields in the header.
1. Token: Authentication request token
2. Payload: This contains details of client
Endpoints
restapi.awarathon.com/api/generate_report
Example
Postdata
$post_array = array(company_code'=>"*****");
$curl = curl_init();
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($post_array));
curl_setopt($curl, CURLOPT_URL, 'https://restapi.awarathon.com/api/get_credential');
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
$result = curl_exec($curl);
Response
{
"success": true,
"message": "Credential load successful.",
"token": "92.8d870944f4541xxxxxxxxxxxxxxxxx",
"payload": "eyJ0eXAiOiJqd3QiLCJhbGciOxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}