This documentation is design to help you get your application quickly integrated with UNICOM industry-leading for sending airtime (International Airtime Topup).
Our direct to carrier model allows you to:
Parameters | Description |
---|---|
x-iotopup-user | Required. Your username. |
x-iotopup-password | Required.Your password |
x-iotopup-key | Required.Your secret key. |
curl --request GET \ --url https://unicomusaonline.com/api/v1/status \ --header 'x-iotopup-user: USER' \ --header 'x-iotopup-password: PASSWORD' \ --header 'x-iotopup-key: KEY'
var client = new RestClient("https://unicomusaonline.com/api/v1/status"); var request = new RestRequest(Method.GET); request.AddHeader("x-iotopup-user", "APP-USER"); request.AddHeader("x-iotopup-password", "APP-PASSWORD"); request.AddHeader("x-iotopup-key", "APP-KEY"); IRestResponse response = client.Execute(request);
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://unicomusaonline.com/api/v1/status", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "x-iotopup-user: USER", "x-iotopup-password: PASSWORD", "x-iotopup-key: KEY" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo $err; } else { echo $response; }
{ "response_code": 200, "error_message": "", "response": { "alive": true, "success": true, "version": "1.0" } }