curl --request GET \
--url https://unicomusaonline.com/api/v1/account \
--header 'x-iotopup-user: USER' \
--header 'x-iotopup-password: PASSWORD' \
--header 'x-iotopup-key: KEY'
var client = new RestClient("https://unicomusaonline.com/api/v1/account");
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/account",
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;
}