APIUser: This would be provided to you by admin. You can use same value to generate your token.
APIKey: This would be provided to you by admin. You can use same value to generate your token.
Token: This would be generated when you authorise your credentials (APIUser and APIKey) through generateToken API call. You can use token value to access all the API call.
act: Use exactly same value for act with following APIs, either one of listed values below act input or the auto filled value.
curl -X POST https://apiuser.beta.itndatabase.com/api-response
-d '{"APIKey":$api_key,"APIUser":$api_user}'
$curl = curl_init();
$post_data = array(
'APIKey' => $api_key,
'APIUser' => $api_user,
);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($curl, CURLOPT_URL, https://apiuser.beta.itndatabase.com/api-login);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
$result = curl_exec($curl);
if(!$result){ die("Connection Failure"); }
curl_close($curl);
echo $result;
curl -X POST https://apiuser.beta.itndatabase.com/api-response
-H "Authorization: Bearer {token}"
-d '{"act" => 'getCountries', "country_id": 1}'
$curl = curl_init();
$post_data = array(
'act' => 'getCountries',
'country_id' => 1,
);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($curl, CURLOPT_URL, https://apiuser.beta.itndatabase.com/api-response);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$headers = [];
$token = ***********;
$headers[] = "Authorization: Bearer {$token}";
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($curl);
if(!$result){ die("Connection Failure"); }
curl_close($curl);
echo $result;
curl -X POST https://apiuser.beta.itndatabase.com/api-response
-H "Authorization: Bearer {token}"
-d '{"act": 'getUSStates', "state_id": 1}'
$curl = curl_init();
$post_data = array(
'act' => 'getUSStates',
'state_id' => 1,
);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($curl, CURLOPT_URL, https://apiuser.beta.itndatabase.com/api-response);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$headers = [];
$token = ***********;
$headers[] = "Authorization: Bearer {$token}";
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($curl);
if(!$result){ die("Connection Failure"); }
curl_close($curl);
echo $result;
curl -X POST https://apiuser.beta.itndatabase.com/api-response
-H "Authorization: Bearer {token}"
-d '{"act": 'getUSAirports', "ap_id": 610}'
$curl = curl_init();
$post_data = array(
'act' => 'getUSAirports',
'ap_id' => 610,
);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($curl, CURLOPT_URL, https://apiuser.beta.itndatabase.com/api-response);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$headers = [];
$token = ***********;
$headers[] = "Authorization: Bearer {$token}";
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($curl);
if(!$result){ die("Connection Failure"); }
curl_close($curl);
echo $result;
curl -X POST https://apiuser.beta.itndatabase.com/api-response
-H "Authorization: Bearer {token}"
-d '{"act": 'getTimezones', "zone_id": 374, "country_code": 'UM'}'
$curl = curl_init();
$post_data = array(
'act' => 'getTimezones',
'zone_id' => 374,
'country_code' => UM,
);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($curl, CURLOPT_URL, https://apiuser.beta.itndatabase.com/api-response);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$headers = [];
$token = ***********;
$headers[] = "Authorization: Bearer {$token}";
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($curl);
if(!$result){ die("Connection Failure"); }
curl_close($curl);
echo $result;
curl -X POST https://apiuser.beta.itndatabase.com/api-response
-H "Authorization: Bearer {token}"
-d '{"act": 'getDOSProgramCategory'}'
$curl = curl_init();
$post_data = array(
'act' => 'getDOSProgramCategory',
);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($curl, CURLOPT_URL, https://apiuser.beta.itndatabase.com/api-response);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$headers = [];
$token = ***********;
$headers[] = "Authorization: Bearer {$token}";
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($curl);
if(!$result){ die("Connection Failure"); }
curl_close($curl);
echo $result;
curl -X POST https://apiuser.beta.itndatabase.com/api-response
-H "Authorization: Bearer {token}"
-d '{"act": 'getProgramList', dos_program_category_id": 1}'
$curl = curl_init();
$post_data = array(
'act' => 'getProgramList',
'dos_program_category_id' => 1,
);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($curl, CURLOPT_URL, https://apiuser.beta.itndatabase.com/api-response);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$headers = [];
$token = ***********;
$headers[] = "Authorization: Bearer {$token}";
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($curl);
if(!$result){ die("Connection Failure"); }
curl_close($curl);
echo $result;
curl -X POST https://apiuser.beta.itndatabase.com/api-response
-H "Authorization: Bearer {token}"
-d '{"act": "newUserRegister","dos_program_category_id": 1,"program_id": 1,"first_name": "John","last_name": "Lee","email_address": "johnlee@yopmail.com","candidate_timezone": 192,"country_citizen": 90,"country_resident": 90, "birth_country": 90,"birth_date": "1991-02-07","job_number": "*****", "resume": @/home/document/resume.pdf}'
$tmpfile = $_FILES['resume']['tmp_name'];
$filetype = $_FILES['resume']['type'];
$filename = basename($_FILES['resume']['name']);
$cfile = curl_file_create($tmpfile, $filetype, $filename);
$curl = curl_init();
$post_data = array(
'act' => 'newUserRegister',
'dos_program_category_id' => 1,
'program_id' => 1,
'first_name' => 'John',
'last_name' => 'Lee',
'email_address' => 'johnlee@yopmail.com',
'candidate_timezone' => '192',
'country_citizen' => '99',
'country_resident' => '99',
'birth_country' => '99',
'birth_date' => '1991-02-07',
'job_number' => '*******',
'resume' => $cfile,
);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($curl, CURLOPT_URL, https://apiuser.beta.itndatabase.com/api-response);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$headers = [];
$token = ***********;
$headers[] = "Authorization: Bearer {$token}";
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($curl);
if(!$result){ die("Connection Failure"); }
curl_close($curl);
echo $result;
curl -X POST https://apiuser.beta.itndatabase.com/api-response
-H "Authorization: Bearer {token}"
-d '{"act": "getEVEligibilityTestLink","email_address": "johnlee@yopmail.com"}'
$curl = curl_init();
$post_data = array(
'act' => 'getEVEligibilityTestLink',
'email_address' => 'johnlee@yopmail.com',
);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($curl, CURLOPT_URL, https://apiuser.beta.itndatabase.com/api-response);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$headers = [];
$token = ***********;
$headers[] = "Authorization: Bearer {$token}";
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($curl);
if(!$result){ die("Connection Failure"); }
curl_close($curl);
echo $result;