You can generate the token from here for the API in which the token is being asked, in the API in which the token number is asked, you do not get the response immediately, in that you have to wait 2-40 seconds. If yes, then you have to use Javascript to hit such API, so that you can refresh that API every second, as if you get response success, then you can display that backend data. - docs.dhboss.com
What is needed to use this API and how it will work is described below -
Your Api Key : Get API In Profile & eKYC
Name | Type | Description | Mandatory |
---|---|---|---|
tokenname | String | {Enter Value} | Yes |
apikeyfill | String | {Enter Value} | Yes |
Name | Type | Description |
---|---|---|
token_no | string | 538792954 |
referid | string | e7838ddb92ac4a5a90df0ea0d11069ae |
https://api.dhboss.com/apicall/createtoken/
tokenname=value&apikeyfill=value
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://api.dhboss.com/apicall/createtoken/', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS => 'tokenname=parceltrack&apikeyfill=youapikey', )); $response = curl_exec($curl); curl_close($curl); echo $response; ?>
{ "token_no": "538792954", "referid": "e7838ddb92ac4a5a90df0ea0d11069ae" }