Active Documentation for /v1
GET
Account balance
{{baseUrl}}/iatu/balance
HEADERS
x-idt-beyond-app-id
x-idt-beyond-app-key
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/iatu/balance");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-idt-beyond-app-id: ");
headers = curl_slist_append(headers, "x-idt-beyond-app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/iatu/balance" {:headers {:x-idt-beyond-app-id ""
:x-idt-beyond-app-key ""}})
require "http/client"
url = "{{baseUrl}}/iatu/balance"
headers = HTTP::Headers{
"x-idt-beyond-app-id" => ""
"x-idt-beyond-app-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/iatu/balance"),
Headers =
{
{ "x-idt-beyond-app-id", "" },
{ "x-idt-beyond-app-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/iatu/balance");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-idt-beyond-app-id", "");
request.AddHeader("x-idt-beyond-app-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/iatu/balance"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-idt-beyond-app-id", "")
req.Header.Add("x-idt-beyond-app-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/iatu/balance HTTP/1.1
X-Idt-Beyond-App-Id:
X-Idt-Beyond-App-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/iatu/balance")
.setHeader("x-idt-beyond-app-id", "")
.setHeader("x-idt-beyond-app-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/iatu/balance"))
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/iatu/balance")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/iatu/balance")
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/iatu/balance');
xhr.setRequestHeader('x-idt-beyond-app-id', '');
xhr.setRequestHeader('x-idt-beyond-app-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/balance',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/iatu/balance';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/iatu/balance',
method: 'GET',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/iatu/balance")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/iatu/balance',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/balance',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/iatu/balance');
req.headers({
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/balance',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/iatu/balance';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-idt-beyond-app-id": @"",
@"x-idt-beyond-app-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/iatu/balance"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/iatu/balance" in
let headers = Header.add_list (Header.init ()) [
("x-idt-beyond-app-id", "");
("x-idt-beyond-app-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/iatu/balance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-idt-beyond-app-id: ",
"x-idt-beyond-app-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/iatu/balance', [
'headers' => [
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/iatu/balance');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/iatu/balance');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/iatu/balance' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/iatu/balance' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-idt-beyond-app-id': "",
'x-idt-beyond-app-key': ""
}
conn.request("GET", "/baseUrl/iatu/balance", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/iatu/balance"
headers = {
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/iatu/balance"
response <- VERB("GET", url, add_headers('x-idt-beyond-app-id' = '', 'x-idt-beyond-app-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/iatu/balance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-idt-beyond-app-id"] = ''
request["x-idt-beyond-app-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/iatu/balance') do |req|
req.headers['x-idt-beyond-app-id'] = ''
req.headers['x-idt-beyond-app-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/iatu/balance";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-idt-beyond-app-id", "".parse().unwrap());
headers.insert("x-idt-beyond-app-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/iatu/balance \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: '
http GET {{baseUrl}}/iatu/balance \
x-idt-beyond-app-id:'' \
x-idt-beyond-app-key:''
wget --quiet \
--method GET \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: ' \
--output-document \
- {{baseUrl}}/iatu/balance
import Foundation
let headers = [
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/iatu/balance")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
List of account charges in CSV
{{baseUrl}}/iatu/charges/reports/all.csv
HEADERS
x-idt-beyond-app-id
x-idt-beyond-app-key
QUERY PARAMS
date_from
date_to
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-idt-beyond-app-id: ");
headers = curl_slist_append(headers, "x-idt-beyond-app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/iatu/charges/reports/all.csv" {:headers {:x-idt-beyond-app-id ""
:x-idt-beyond-app-key ""}
:query-params {:date_from ""
:date_to ""}})
require "http/client"
url = "{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to="
headers = HTTP::Headers{
"x-idt-beyond-app-id" => ""
"x-idt-beyond-app-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to="),
Headers =
{
{ "x-idt-beyond-app-id", "" },
{ "x-idt-beyond-app-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-idt-beyond-app-id", "");
request.AddHeader("x-idt-beyond-app-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to="
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-idt-beyond-app-id", "")
req.Header.Add("x-idt-beyond-app-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/iatu/charges/reports/all.csv?date_from=&date_to= HTTP/1.1
X-Idt-Beyond-App-Id:
X-Idt-Beyond-App-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=")
.setHeader("x-idt-beyond-app-id", "")
.setHeader("x-idt-beyond-app-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to="))
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=")
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=');
xhr.setRequestHeader('x-idt-beyond-app-id', '');
xhr.setRequestHeader('x-idt-beyond-app-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/charges/reports/all.csv',
params: {date_from: '', date_to: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=',
method: 'GET',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/iatu/charges/reports/all.csv?date_from=&date_to=',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/charges/reports/all.csv',
qs: {date_from: '', date_to: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/iatu/charges/reports/all.csv');
req.query({
date_from: '',
date_to: ''
});
req.headers({
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/charges/reports/all.csv',
params: {date_from: '', date_to: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-idt-beyond-app-id": @"",
@"x-idt-beyond-app-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to="]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=" in
let headers = Header.add_list (Header.init ()) [
("x-idt-beyond-app-id", "");
("x-idt-beyond-app-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-idt-beyond-app-id: ",
"x-idt-beyond-app-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=', [
'headers' => [
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/iatu/charges/reports/all.csv');
$request->setMethod(HTTP_METH_GET);
$request->setQueryData([
'date_from' => '',
'date_to' => ''
]);
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/iatu/charges/reports/all.csv');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
'date_from' => '',
'date_to' => ''
]));
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-idt-beyond-app-id': "",
'x-idt-beyond-app-key': ""
}
conn.request("GET", "/baseUrl/iatu/charges/reports/all.csv?date_from=&date_to=", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/iatu/charges/reports/all.csv"
querystring = {"date_from":"","date_to":""}
headers = {
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json())
library(httr)
url <- "{{baseUrl}}/iatu/charges/reports/all.csv"
queryString <- list(
date_from = "",
date_to = ""
)
response <- VERB("GET", url, query = queryString, add_headers('x-idt-beyond-app-id' = '', 'x-idt-beyond-app-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-idt-beyond-app-id"] = ''
request["x-idt-beyond-app-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/iatu/charges/reports/all.csv') do |req|
req.headers['x-idt-beyond-app-id'] = ''
req.headers['x-idt-beyond-app-key'] = ''
req.params['date_from'] = ''
req.params['date_to'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/iatu/charges/reports/all.csv";
let querystring = [
("date_from", ""),
("date_to", ""),
];
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-idt-beyond-app-id", "".parse().unwrap());
headers.insert("x-idt-beyond-app-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.query(&querystring)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url '{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=' \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: '
http GET '{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=' \
x-idt-beyond-app-id:'' \
x-idt-beyond-app-key:''
wget --quiet \
--method GET \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: ' \
--output-document \
- '{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to='
import Foundation
let headers = [
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/iatu/charges/reports/all.csv?date_from=&date_to=")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
List of account charges in JSON
{{baseUrl}}/iatu/charges/reports/all
HEADERS
x-idt-beyond-app-id
x-idt-beyond-app-key
QUERY PARAMS
date_from
date_to
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-idt-beyond-app-id: ");
headers = curl_slist_append(headers, "x-idt-beyond-app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/iatu/charges/reports/all" {:headers {:x-idt-beyond-app-id ""
:x-idt-beyond-app-key ""}
:query-params {:date_from ""
:date_to ""}})
require "http/client"
url = "{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to="
headers = HTTP::Headers{
"x-idt-beyond-app-id" => ""
"x-idt-beyond-app-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to="),
Headers =
{
{ "x-idt-beyond-app-id", "" },
{ "x-idt-beyond-app-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-idt-beyond-app-id", "");
request.AddHeader("x-idt-beyond-app-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to="
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-idt-beyond-app-id", "")
req.Header.Add("x-idt-beyond-app-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/iatu/charges/reports/all?date_from=&date_to= HTTP/1.1
X-Idt-Beyond-App-Id:
X-Idt-Beyond-App-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=")
.setHeader("x-idt-beyond-app-id", "")
.setHeader("x-idt-beyond-app-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to="))
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=")
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=');
xhr.setRequestHeader('x-idt-beyond-app-id', '');
xhr.setRequestHeader('x-idt-beyond-app-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/charges/reports/all',
params: {date_from: '', date_to: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=',
method: 'GET',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/iatu/charges/reports/all?date_from=&date_to=',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/charges/reports/all',
qs: {date_from: '', date_to: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/iatu/charges/reports/all');
req.query({
date_from: '',
date_to: ''
});
req.headers({
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/charges/reports/all',
params: {date_from: '', date_to: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-idt-beyond-app-id": @"",
@"x-idt-beyond-app-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to="]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=" in
let headers = Header.add_list (Header.init ()) [
("x-idt-beyond-app-id", "");
("x-idt-beyond-app-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-idt-beyond-app-id: ",
"x-idt-beyond-app-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=', [
'headers' => [
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/iatu/charges/reports/all');
$request->setMethod(HTTP_METH_GET);
$request->setQueryData([
'date_from' => '',
'date_to' => ''
]);
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/iatu/charges/reports/all');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
'date_from' => '',
'date_to' => ''
]));
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-idt-beyond-app-id': "",
'x-idt-beyond-app-key': ""
}
conn.request("GET", "/baseUrl/iatu/charges/reports/all?date_from=&date_to=", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/iatu/charges/reports/all"
querystring = {"date_from":"","date_to":""}
headers = {
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json())
library(httr)
url <- "{{baseUrl}}/iatu/charges/reports/all"
queryString <- list(
date_from = "",
date_to = ""
)
response <- VERB("GET", url, query = queryString, add_headers('x-idt-beyond-app-id' = '', 'x-idt-beyond-app-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-idt-beyond-app-id"] = ''
request["x-idt-beyond-app-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/iatu/charges/reports/all') do |req|
req.headers['x-idt-beyond-app-id'] = ''
req.headers['x-idt-beyond-app-key'] = ''
req.params['date_from'] = ''
req.params['date_to'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/iatu/charges/reports/all";
let querystring = [
("date_from", ""),
("date_to", ""),
];
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-idt-beyond-app-id", "".parse().unwrap());
headers.insert("x-idt-beyond-app-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.query(&querystring)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url '{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=' \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: '
http GET '{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=' \
x-idt-beyond-app-id:'' \
x-idt-beyond-app-key:''
wget --quiet \
--method GET \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: ' \
--output-document \
- '{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to='
import Foundation
let headers = [
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/iatu/charges/reports/all?date_from=&date_to=")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
Get a list of products in CSV format
{{baseUrl}}/iatu/products/reports/all.csv
HEADERS
x-idt-beyond-app-id
x-idt-beyond-app-key
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/iatu/products/reports/all.csv");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-idt-beyond-app-id: ");
headers = curl_slist_append(headers, "x-idt-beyond-app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/iatu/products/reports/all.csv" {:headers {:x-idt-beyond-app-id ""
:x-idt-beyond-app-key ""}})
require "http/client"
url = "{{baseUrl}}/iatu/products/reports/all.csv"
headers = HTTP::Headers{
"x-idt-beyond-app-id" => ""
"x-idt-beyond-app-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/iatu/products/reports/all.csv"),
Headers =
{
{ "x-idt-beyond-app-id", "" },
{ "x-idt-beyond-app-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/iatu/products/reports/all.csv");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-idt-beyond-app-id", "");
request.AddHeader("x-idt-beyond-app-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/iatu/products/reports/all.csv"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-idt-beyond-app-id", "")
req.Header.Add("x-idt-beyond-app-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/iatu/products/reports/all.csv HTTP/1.1
X-Idt-Beyond-App-Id:
X-Idt-Beyond-App-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/iatu/products/reports/all.csv")
.setHeader("x-idt-beyond-app-id", "")
.setHeader("x-idt-beyond-app-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/iatu/products/reports/all.csv"))
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/iatu/products/reports/all.csv")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/iatu/products/reports/all.csv")
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/iatu/products/reports/all.csv');
xhr.setRequestHeader('x-idt-beyond-app-id', '');
xhr.setRequestHeader('x-idt-beyond-app-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/products/reports/all.csv',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/iatu/products/reports/all.csv';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/iatu/products/reports/all.csv',
method: 'GET',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/iatu/products/reports/all.csv")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/iatu/products/reports/all.csv',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/products/reports/all.csv',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/iatu/products/reports/all.csv');
req.headers({
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/products/reports/all.csv',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/iatu/products/reports/all.csv';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-idt-beyond-app-id": @"",
@"x-idt-beyond-app-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/iatu/products/reports/all.csv"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/iatu/products/reports/all.csv" in
let headers = Header.add_list (Header.init ()) [
("x-idt-beyond-app-id", "");
("x-idt-beyond-app-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/iatu/products/reports/all.csv",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-idt-beyond-app-id: ",
"x-idt-beyond-app-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/iatu/products/reports/all.csv', [
'headers' => [
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/iatu/products/reports/all.csv');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/iatu/products/reports/all.csv');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/iatu/products/reports/all.csv' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/iatu/products/reports/all.csv' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-idt-beyond-app-id': "",
'x-idt-beyond-app-key': ""
}
conn.request("GET", "/baseUrl/iatu/products/reports/all.csv", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/iatu/products/reports/all.csv"
headers = {
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/iatu/products/reports/all.csv"
response <- VERB("GET", url, add_headers('x-idt-beyond-app-id' = '', 'x-idt-beyond-app-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/iatu/products/reports/all.csv")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-idt-beyond-app-id"] = ''
request["x-idt-beyond-app-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/iatu/products/reports/all.csv') do |req|
req.headers['x-idt-beyond-app-id'] = ''
req.headers['x-idt-beyond-app-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/iatu/products/reports/all.csv";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-idt-beyond-app-id", "".parse().unwrap());
headers.insert("x-idt-beyond-app-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/iatu/products/reports/all.csv \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: '
http GET {{baseUrl}}/iatu/products/reports/all.csv \
x-idt-beyond-app-id:'' \
x-idt-beyond-app-key:''
wget --quiet \
--method GET \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: ' \
--output-document \
- {{baseUrl}}/iatu/products/reports/all.csv
import Foundation
let headers = [
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/iatu/products/reports/all.csv")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
Get a list of products in JSON format
{{baseUrl}}/iatu/products/reports/all
HEADERS
x-idt-beyond-app-id
x-idt-beyond-app-key
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/iatu/products/reports/all");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-idt-beyond-app-id: ");
headers = curl_slist_append(headers, "x-idt-beyond-app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/iatu/products/reports/all" {:headers {:x-idt-beyond-app-id ""
:x-idt-beyond-app-key ""}})
require "http/client"
url = "{{baseUrl}}/iatu/products/reports/all"
headers = HTTP::Headers{
"x-idt-beyond-app-id" => ""
"x-idt-beyond-app-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/iatu/products/reports/all"),
Headers =
{
{ "x-idt-beyond-app-id", "" },
{ "x-idt-beyond-app-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/iatu/products/reports/all");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-idt-beyond-app-id", "");
request.AddHeader("x-idt-beyond-app-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/iatu/products/reports/all"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-idt-beyond-app-id", "")
req.Header.Add("x-idt-beyond-app-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/iatu/products/reports/all HTTP/1.1
X-Idt-Beyond-App-Id:
X-Idt-Beyond-App-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/iatu/products/reports/all")
.setHeader("x-idt-beyond-app-id", "")
.setHeader("x-idt-beyond-app-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/iatu/products/reports/all"))
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/iatu/products/reports/all")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/iatu/products/reports/all")
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/iatu/products/reports/all');
xhr.setRequestHeader('x-idt-beyond-app-id', '');
xhr.setRequestHeader('x-idt-beyond-app-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/products/reports/all',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/iatu/products/reports/all';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/iatu/products/reports/all',
method: 'GET',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/iatu/products/reports/all")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/iatu/products/reports/all',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/products/reports/all',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/iatu/products/reports/all');
req.headers({
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/products/reports/all',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/iatu/products/reports/all';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-idt-beyond-app-id": @"",
@"x-idt-beyond-app-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/iatu/products/reports/all"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/iatu/products/reports/all" in
let headers = Header.add_list (Header.init ()) [
("x-idt-beyond-app-id", "");
("x-idt-beyond-app-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/iatu/products/reports/all",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-idt-beyond-app-id: ",
"x-idt-beyond-app-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/iatu/products/reports/all', [
'headers' => [
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/iatu/products/reports/all');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/iatu/products/reports/all');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/iatu/products/reports/all' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/iatu/products/reports/all' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-idt-beyond-app-id': "",
'x-idt-beyond-app-key': ""
}
conn.request("GET", "/baseUrl/iatu/products/reports/all", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/iatu/products/reports/all"
headers = {
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/iatu/products/reports/all"
response <- VERB("GET", url, add_headers('x-idt-beyond-app-id' = '', 'x-idt-beyond-app-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/iatu/products/reports/all")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-idt-beyond-app-id"] = ''
request["x-idt-beyond-app-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/iatu/products/reports/all') do |req|
req.headers['x-idt-beyond-app-id'] = ''
req.headers['x-idt-beyond-app-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/iatu/products/reports/all";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-idt-beyond-app-id", "".parse().unwrap());
headers.insert("x-idt-beyond-app-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/iatu/products/reports/all \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: '
http GET {{baseUrl}}/iatu/products/reports/all \
x-idt-beyond-app-id:'' \
x-idt-beyond-app-key:''
wget --quiet \
--method GET \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: ' \
--output-document \
- {{baseUrl}}/iatu/products/reports/all
import Foundation
let headers = [
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/iatu/products/reports/all")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
Get the estimated Local Value of a product
{{baseUrl}}/iatu/products/reports/local-value
HEADERS
x-idt-beyond-app-id
x-idt-beyond-app-key
QUERY PARAMS
country_code
carrier_code
amount
currency_code
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-idt-beyond-app-id: ");
headers = curl_slist_append(headers, "x-idt-beyond-app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/iatu/products/reports/local-value" {:headers {:x-idt-beyond-app-id ""
:x-idt-beyond-app-key ""}
:query-params {:country_code ""
:carrier_code ""
:amount ""
:currency_code ""}})
require "http/client"
url = "{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code="
headers = HTTP::Headers{
"x-idt-beyond-app-id" => ""
"x-idt-beyond-app-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code="),
Headers =
{
{ "x-idt-beyond-app-id", "" },
{ "x-idt-beyond-app-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-idt-beyond-app-id", "");
request.AddHeader("x-idt-beyond-app-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code="
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-idt-beyond-app-id", "")
req.Header.Add("x-idt-beyond-app-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code= HTTP/1.1
X-Idt-Beyond-App-Id:
X-Idt-Beyond-App-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=")
.setHeader("x-idt-beyond-app-id", "")
.setHeader("x-idt-beyond-app-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code="))
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=")
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=');
xhr.setRequestHeader('x-idt-beyond-app-id', '');
xhr.setRequestHeader('x-idt-beyond-app-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/products/reports/local-value',
params: {country_code: '', carrier_code: '', amount: '', currency_code: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=',
method: 'GET',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/products/reports/local-value',
qs: {country_code: '', carrier_code: '', amount: '', currency_code: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/iatu/products/reports/local-value');
req.query({
country_code: '',
carrier_code: '',
amount: '',
currency_code: ''
});
req.headers({
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/products/reports/local-value',
params: {country_code: '', carrier_code: '', amount: '', currency_code: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-idt-beyond-app-id": @"",
@"x-idt-beyond-app-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code="]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=" in
let headers = Header.add_list (Header.init ()) [
("x-idt-beyond-app-id", "");
("x-idt-beyond-app-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-idt-beyond-app-id: ",
"x-idt-beyond-app-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=', [
'headers' => [
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/iatu/products/reports/local-value');
$request->setMethod(HTTP_METH_GET);
$request->setQueryData([
'country_code' => '',
'carrier_code' => '',
'amount' => '',
'currency_code' => ''
]);
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/iatu/products/reports/local-value');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
'country_code' => '',
'carrier_code' => '',
'amount' => '',
'currency_code' => ''
]));
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-idt-beyond-app-id': "",
'x-idt-beyond-app-key': ""
}
conn.request("GET", "/baseUrl/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/iatu/products/reports/local-value"
querystring = {"country_code":"","carrier_code":"","amount":"","currency_code":""}
headers = {
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json())
library(httr)
url <- "{{baseUrl}}/iatu/products/reports/local-value"
queryString <- list(
country_code = "",
carrier_code = "",
amount = "",
currency_code = ""
)
response <- VERB("GET", url, query = queryString, add_headers('x-idt-beyond-app-id' = '', 'x-idt-beyond-app-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-idt-beyond-app-id"] = ''
request["x-idt-beyond-app-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/iatu/products/reports/local-value') do |req|
req.headers['x-idt-beyond-app-id'] = ''
req.headers['x-idt-beyond-app-key'] = ''
req.params['country_code'] = ''
req.params['carrier_code'] = ''
req.params['amount'] = ''
req.params['currency_code'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/iatu/products/reports/local-value";
let querystring = [
("country_code", ""),
("carrier_code", ""),
("amount", ""),
("currency_code", ""),
];
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-idt-beyond-app-id", "".parse().unwrap());
headers.insert("x-idt-beyond-app-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.query(&querystring)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url '{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=' \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: '
http GET '{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=' \
x-idt-beyond-app-id:'' \
x-idt-beyond-app-key:''
wget --quiet \
--method GET \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: ' \
--output-document \
- '{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code='
import Foundation
let headers = [
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/iatu/products/reports/local-value?country_code=&carrier_code=&amount=¤cy_code=")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
List of account topups in CSV
{{baseUrl}}/iatu/topups/reports/all.csv
HEADERS
x-idt-beyond-app-id
x-idt-beyond-app-key
QUERY PARAMS
date_from
date_to
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-idt-beyond-app-id: ");
headers = curl_slist_append(headers, "x-idt-beyond-app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/iatu/topups/reports/all.csv" {:headers {:x-idt-beyond-app-id ""
:x-idt-beyond-app-key ""}
:query-params {:date_from ""
:date_to ""}})
require "http/client"
url = "{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to="
headers = HTTP::Headers{
"x-idt-beyond-app-id" => ""
"x-idt-beyond-app-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to="),
Headers =
{
{ "x-idt-beyond-app-id", "" },
{ "x-idt-beyond-app-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-idt-beyond-app-id", "");
request.AddHeader("x-idt-beyond-app-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to="
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-idt-beyond-app-id", "")
req.Header.Add("x-idt-beyond-app-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/iatu/topups/reports/all.csv?date_from=&date_to= HTTP/1.1
X-Idt-Beyond-App-Id:
X-Idt-Beyond-App-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=")
.setHeader("x-idt-beyond-app-id", "")
.setHeader("x-idt-beyond-app-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to="))
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=")
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=');
xhr.setRequestHeader('x-idt-beyond-app-id', '');
xhr.setRequestHeader('x-idt-beyond-app-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/topups/reports/all.csv',
params: {date_from: '', date_to: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=',
method: 'GET',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/iatu/topups/reports/all.csv?date_from=&date_to=',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/topups/reports/all.csv',
qs: {date_from: '', date_to: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/iatu/topups/reports/all.csv');
req.query({
date_from: '',
date_to: ''
});
req.headers({
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/topups/reports/all.csv',
params: {date_from: '', date_to: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-idt-beyond-app-id": @"",
@"x-idt-beyond-app-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to="]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=" in
let headers = Header.add_list (Header.init ()) [
("x-idt-beyond-app-id", "");
("x-idt-beyond-app-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-idt-beyond-app-id: ",
"x-idt-beyond-app-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=', [
'headers' => [
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/iatu/topups/reports/all.csv');
$request->setMethod(HTTP_METH_GET);
$request->setQueryData([
'date_from' => '',
'date_to' => ''
]);
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/iatu/topups/reports/all.csv');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
'date_from' => '',
'date_to' => ''
]));
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-idt-beyond-app-id': "",
'x-idt-beyond-app-key': ""
}
conn.request("GET", "/baseUrl/iatu/topups/reports/all.csv?date_from=&date_to=", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/iatu/topups/reports/all.csv"
querystring = {"date_from":"","date_to":""}
headers = {
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json())
library(httr)
url <- "{{baseUrl}}/iatu/topups/reports/all.csv"
queryString <- list(
date_from = "",
date_to = ""
)
response <- VERB("GET", url, query = queryString, add_headers('x-idt-beyond-app-id' = '', 'x-idt-beyond-app-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-idt-beyond-app-id"] = ''
request["x-idt-beyond-app-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/iatu/topups/reports/all.csv') do |req|
req.headers['x-idt-beyond-app-id'] = ''
req.headers['x-idt-beyond-app-key'] = ''
req.params['date_from'] = ''
req.params['date_to'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/iatu/topups/reports/all.csv";
let querystring = [
("date_from", ""),
("date_to", ""),
];
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-idt-beyond-app-id", "".parse().unwrap());
headers.insert("x-idt-beyond-app-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.query(&querystring)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url '{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=' \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: '
http GET '{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=' \
x-idt-beyond-app-id:'' \
x-idt-beyond-app-key:''
wget --quiet \
--method GET \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: ' \
--output-document \
- '{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to='
import Foundation
let headers = [
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/iatu/topups/reports/all.csv?date_from=&date_to=")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
List of account topups in JSON
{{baseUrl}}/iatu/topups/reports/all
HEADERS
x-idt-beyond-app-id
x-idt-beyond-app-key
QUERY PARAMS
date_from
date_to
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-idt-beyond-app-id: ");
headers = curl_slist_append(headers, "x-idt-beyond-app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/iatu/topups/reports/all" {:headers {:x-idt-beyond-app-id ""
:x-idt-beyond-app-key ""}
:query-params {:date_from ""
:date_to ""}})
require "http/client"
url = "{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to="
headers = HTTP::Headers{
"x-idt-beyond-app-id" => ""
"x-idt-beyond-app-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to="),
Headers =
{
{ "x-idt-beyond-app-id", "" },
{ "x-idt-beyond-app-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-idt-beyond-app-id", "");
request.AddHeader("x-idt-beyond-app-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to="
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-idt-beyond-app-id", "")
req.Header.Add("x-idt-beyond-app-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/iatu/topups/reports/all?date_from=&date_to= HTTP/1.1
X-Idt-Beyond-App-Id:
X-Idt-Beyond-App-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=")
.setHeader("x-idt-beyond-app-id", "")
.setHeader("x-idt-beyond-app-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to="))
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=")
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=');
xhr.setRequestHeader('x-idt-beyond-app-id', '');
xhr.setRequestHeader('x-idt-beyond-app-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/topups/reports/all',
params: {date_from: '', date_to: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=',
method: 'GET',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/iatu/topups/reports/all?date_from=&date_to=',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/topups/reports/all',
qs: {date_from: '', date_to: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/iatu/topups/reports/all');
req.query({
date_from: '',
date_to: ''
});
req.headers({
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/topups/reports/all',
params: {date_from: '', date_to: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-idt-beyond-app-id": @"",
@"x-idt-beyond-app-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to="]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=" in
let headers = Header.add_list (Header.init ()) [
("x-idt-beyond-app-id", "");
("x-idt-beyond-app-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-idt-beyond-app-id: ",
"x-idt-beyond-app-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=', [
'headers' => [
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/iatu/topups/reports/all');
$request->setMethod(HTTP_METH_GET);
$request->setQueryData([
'date_from' => '',
'date_to' => ''
]);
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/iatu/topups/reports/all');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
'date_from' => '',
'date_to' => ''
]));
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-idt-beyond-app-id': "",
'x-idt-beyond-app-key': ""
}
conn.request("GET", "/baseUrl/iatu/topups/reports/all?date_from=&date_to=", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/iatu/topups/reports/all"
querystring = {"date_from":"","date_to":""}
headers = {
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json())
library(httr)
url <- "{{baseUrl}}/iatu/topups/reports/all"
queryString <- list(
date_from = "",
date_to = ""
)
response <- VERB("GET", url, query = queryString, add_headers('x-idt-beyond-app-id' = '', 'x-idt-beyond-app-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-idt-beyond-app-id"] = ''
request["x-idt-beyond-app-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/iatu/topups/reports/all') do |req|
req.headers['x-idt-beyond-app-id'] = ''
req.headers['x-idt-beyond-app-key'] = ''
req.params['date_from'] = ''
req.params['date_to'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/iatu/topups/reports/all";
let querystring = [
("date_from", ""),
("date_to", ""),
];
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-idt-beyond-app-id", "".parse().unwrap());
headers.insert("x-idt-beyond-app-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.query(&querystring)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url '{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=' \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: '
http GET '{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=' \
x-idt-beyond-app-id:'' \
x-idt-beyond-app-key:''
wget --quiet \
--method GET \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: ' \
--output-document \
- '{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to='
import Foundation
let headers = [
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/iatu/topups/reports/all?date_from=&date_to=")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
Reversal of a Topup
{{baseUrl}}/iatu/topups/reverse
HEADERS
x-idt-beyond-app-id
x-idt-beyond-app-key
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/iatu/topups/reverse");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-idt-beyond-app-id: ");
headers = curl_slist_append(headers, "x-idt-beyond-app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/iatu/topups/reverse" {:headers {:x-idt-beyond-app-id ""
:x-idt-beyond-app-key ""}})
require "http/client"
url = "{{baseUrl}}/iatu/topups/reverse"
headers = HTTP::Headers{
"x-idt-beyond-app-id" => ""
"x-idt-beyond-app-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/iatu/topups/reverse"),
Headers =
{
{ "x-idt-beyond-app-id", "" },
{ "x-idt-beyond-app-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/iatu/topups/reverse");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-idt-beyond-app-id", "");
request.AddHeader("x-idt-beyond-app-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/iatu/topups/reverse"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-idt-beyond-app-id", "")
req.Header.Add("x-idt-beyond-app-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/iatu/topups/reverse HTTP/1.1
X-Idt-Beyond-App-Id:
X-Idt-Beyond-App-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/iatu/topups/reverse")
.setHeader("x-idt-beyond-app-id", "")
.setHeader("x-idt-beyond-app-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/iatu/topups/reverse"))
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/iatu/topups/reverse")
.post(null)
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/iatu/topups/reverse")
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/iatu/topups/reverse');
xhr.setRequestHeader('x-idt-beyond-app-id', '');
xhr.setRequestHeader('x-idt-beyond-app-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/iatu/topups/reverse',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/iatu/topups/reverse';
const options = {
method: 'POST',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/iatu/topups/reverse',
method: 'POST',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/iatu/topups/reverse")
.post(null)
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/iatu/topups/reverse',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/iatu/topups/reverse',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/iatu/topups/reverse');
req.headers({
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/iatu/topups/reverse',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/iatu/topups/reverse';
const options = {
method: 'POST',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-idt-beyond-app-id": @"",
@"x-idt-beyond-app-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/iatu/topups/reverse"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/iatu/topups/reverse" in
let headers = Header.add_list (Header.init ()) [
("x-idt-beyond-app-id", "");
("x-idt-beyond-app-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/iatu/topups/reverse",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-idt-beyond-app-id: ",
"x-idt-beyond-app-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/iatu/topups/reverse', [
'headers' => [
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/iatu/topups/reverse');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/iatu/topups/reverse');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/iatu/topups/reverse' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/iatu/topups/reverse' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-idt-beyond-app-id': "",
'x-idt-beyond-app-key': ""
}
conn.request("POST", "/baseUrl/iatu/topups/reverse", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/iatu/topups/reverse"
headers = {
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/iatu/topups/reverse"
response <- VERB("POST", url, add_headers('x-idt-beyond-app-id' = '', 'x-idt-beyond-app-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/iatu/topups/reverse")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-idt-beyond-app-id"] = ''
request["x-idt-beyond-app-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/iatu/topups/reverse') do |req|
req.headers['x-idt-beyond-app-id'] = ''
req.headers['x-idt-beyond-app-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/iatu/topups/reverse";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-idt-beyond-app-id", "".parse().unwrap());
headers.insert("x-idt-beyond-app-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/iatu/topups/reverse \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: '
http POST {{baseUrl}}/iatu/topups/reverse \
x-idt-beyond-app-id:'' \
x-idt-beyond-app-key:''
wget --quiet \
--method POST \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: ' \
--output-document \
- {{baseUrl}}/iatu/topups/reverse
import Foundation
let headers = [
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/iatu/topups/reverse")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
Search topups transactions
{{baseUrl}}/iatu/topups/reports
HEADERS
x-idt-beyond-app-id
x-idt-beyond-app-key
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/iatu/topups/reports");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-idt-beyond-app-id: ");
headers = curl_slist_append(headers, "x-idt-beyond-app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/iatu/topups/reports" {:headers {:x-idt-beyond-app-id ""
:x-idt-beyond-app-key ""}})
require "http/client"
url = "{{baseUrl}}/iatu/topups/reports"
headers = HTTP::Headers{
"x-idt-beyond-app-id" => ""
"x-idt-beyond-app-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/iatu/topups/reports"),
Headers =
{
{ "x-idt-beyond-app-id", "" },
{ "x-idt-beyond-app-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/iatu/topups/reports");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-idt-beyond-app-id", "");
request.AddHeader("x-idt-beyond-app-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/iatu/topups/reports"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-idt-beyond-app-id", "")
req.Header.Add("x-idt-beyond-app-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/iatu/topups/reports HTTP/1.1
X-Idt-Beyond-App-Id:
X-Idt-Beyond-App-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/iatu/topups/reports")
.setHeader("x-idt-beyond-app-id", "")
.setHeader("x-idt-beyond-app-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/iatu/topups/reports"))
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/iatu/topups/reports")
.post(null)
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/iatu/topups/reports")
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/iatu/topups/reports');
xhr.setRequestHeader('x-idt-beyond-app-id', '');
xhr.setRequestHeader('x-idt-beyond-app-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/iatu/topups/reports',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/iatu/topups/reports';
const options = {
method: 'POST',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/iatu/topups/reports',
method: 'POST',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/iatu/topups/reports")
.post(null)
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/iatu/topups/reports',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/iatu/topups/reports',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/iatu/topups/reports');
req.headers({
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/iatu/topups/reports',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/iatu/topups/reports';
const options = {
method: 'POST',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-idt-beyond-app-id": @"",
@"x-idt-beyond-app-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/iatu/topups/reports"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/iatu/topups/reports" in
let headers = Header.add_list (Header.init ()) [
("x-idt-beyond-app-id", "");
("x-idt-beyond-app-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/iatu/topups/reports",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-idt-beyond-app-id: ",
"x-idt-beyond-app-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/iatu/topups/reports', [
'headers' => [
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/iatu/topups/reports');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/iatu/topups/reports');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/iatu/topups/reports' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/iatu/topups/reports' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-idt-beyond-app-id': "",
'x-idt-beyond-app-key': ""
}
conn.request("POST", "/baseUrl/iatu/topups/reports", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/iatu/topups/reports"
headers = {
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/iatu/topups/reports"
response <- VERB("POST", url, add_headers('x-idt-beyond-app-id' = '', 'x-idt-beyond-app-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/iatu/topups/reports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-idt-beyond-app-id"] = ''
request["x-idt-beyond-app-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/iatu/topups/reports') do |req|
req.headers['x-idt-beyond-app-id'] = ''
req.headers['x-idt-beyond-app-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/iatu/topups/reports";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-idt-beyond-app-id", "".parse().unwrap());
headers.insert("x-idt-beyond-app-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/iatu/topups/reports \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: '
http POST {{baseUrl}}/iatu/topups/reports \
x-idt-beyond-app-id:'' \
x-idt-beyond-app-key:''
wget --quiet \
--method POST \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: ' \
--output-document \
- {{baseUrl}}/iatu/topups/reports
import Foundation
let headers = [
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/iatu/topups/reports")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
Summary of account topups in JSON
{{baseUrl}}/iatu/topups/reports/totals
HEADERS
x-idt-beyond-app-id
x-idt-beyond-app-key
QUERY PARAMS
date_from
date_to
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-idt-beyond-app-id: ");
headers = curl_slist_append(headers, "x-idt-beyond-app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/iatu/topups/reports/totals" {:headers {:x-idt-beyond-app-id ""
:x-idt-beyond-app-key ""}
:query-params {:date_from ""
:date_to ""}})
require "http/client"
url = "{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to="
headers = HTTP::Headers{
"x-idt-beyond-app-id" => ""
"x-idt-beyond-app-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to="),
Headers =
{
{ "x-idt-beyond-app-id", "" },
{ "x-idt-beyond-app-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-idt-beyond-app-id", "");
request.AddHeader("x-idt-beyond-app-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to="
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-idt-beyond-app-id", "")
req.Header.Add("x-idt-beyond-app-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/iatu/topups/reports/totals?date_from=&date_to= HTTP/1.1
X-Idt-Beyond-App-Id:
X-Idt-Beyond-App-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=")
.setHeader("x-idt-beyond-app-id", "")
.setHeader("x-idt-beyond-app-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to="))
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=")
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=');
xhr.setRequestHeader('x-idt-beyond-app-id', '');
xhr.setRequestHeader('x-idt-beyond-app-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/topups/reports/totals',
params: {date_from: '', date_to: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=',
method: 'GET',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/iatu/topups/reports/totals?date_from=&date_to=',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/topups/reports/totals',
qs: {date_from: '', date_to: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/iatu/topups/reports/totals');
req.query({
date_from: '',
date_to: ''
});
req.headers({
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/topups/reports/totals',
params: {date_from: '', date_to: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-idt-beyond-app-id": @"",
@"x-idt-beyond-app-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to="]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=" in
let headers = Header.add_list (Header.init ()) [
("x-idt-beyond-app-id", "");
("x-idt-beyond-app-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-idt-beyond-app-id: ",
"x-idt-beyond-app-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=', [
'headers' => [
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/iatu/topups/reports/totals');
$request->setMethod(HTTP_METH_GET);
$request->setQueryData([
'date_from' => '',
'date_to' => ''
]);
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/iatu/topups/reports/totals');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
'date_from' => '',
'date_to' => ''
]));
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-idt-beyond-app-id': "",
'x-idt-beyond-app-key': ""
}
conn.request("GET", "/baseUrl/iatu/topups/reports/totals?date_from=&date_to=", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/iatu/topups/reports/totals"
querystring = {"date_from":"","date_to":""}
headers = {
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json())
library(httr)
url <- "{{baseUrl}}/iatu/topups/reports/totals"
queryString <- list(
date_from = "",
date_to = ""
)
response <- VERB("GET", url, query = queryString, add_headers('x-idt-beyond-app-id' = '', 'x-idt-beyond-app-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-idt-beyond-app-id"] = ''
request["x-idt-beyond-app-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/iatu/topups/reports/totals') do |req|
req.headers['x-idt-beyond-app-id'] = ''
req.headers['x-idt-beyond-app-key'] = ''
req.params['date_from'] = ''
req.params['date_to'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/iatu/topups/reports/totals";
let querystring = [
("date_from", ""),
("date_to", ""),
];
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-idt-beyond-app-id", "".parse().unwrap());
headers.insert("x-idt-beyond-app-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.query(&querystring)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url '{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=' \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: '
http GET '{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=' \
x-idt-beyond-app-id:'' \
x-idt-beyond-app-key:''
wget --quiet \
--method GET \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: ' \
--output-document \
- '{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to='
import Foundation
let headers = [
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/iatu/topups/reports/totals?date_from=&date_to=")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
POST
Topup a mobile phone
{{baseUrl}}/iatu/topups
HEADERS
x-idt-beyond-app-id
x-idt-beyond-app-key
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/iatu/topups");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-idt-beyond-app-id: ");
headers = curl_slist_append(headers, "x-idt-beyond-app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/post "{{baseUrl}}/iatu/topups" {:headers {:x-idt-beyond-app-id ""
:x-idt-beyond-app-key ""}})
require "http/client"
url = "{{baseUrl}}/iatu/topups"
headers = HTTP::Headers{
"x-idt-beyond-app-id" => ""
"x-idt-beyond-app-key" => ""
}
response = HTTP::Client.post url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Post,
RequestUri = new Uri("{{baseUrl}}/iatu/topups"),
Headers =
{
{ "x-idt-beyond-app-id", "" },
{ "x-idt-beyond-app-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/iatu/topups");
var request = new RestRequest("", Method.Post);
request.AddHeader("x-idt-beyond-app-id", "");
request.AddHeader("x-idt-beyond-app-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/iatu/topups"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-idt-beyond-app-id", "")
req.Header.Add("x-idt-beyond-app-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
POST /baseUrl/iatu/topups HTTP/1.1
X-Idt-Beyond-App-Id:
X-Idt-Beyond-App-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("POST", "{{baseUrl}}/iatu/topups")
.setHeader("x-idt-beyond-app-id", "")
.setHeader("x-idt-beyond-app-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/iatu/topups"))
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.method("POST", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/iatu/topups")
.post(null)
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.post("{{baseUrl}}/iatu/topups")
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('POST', '{{baseUrl}}/iatu/topups');
xhr.setRequestHeader('x-idt-beyond-app-id', '');
xhr.setRequestHeader('x-idt-beyond-app-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'POST',
url: '{{baseUrl}}/iatu/topups',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/iatu/topups';
const options = {
method: 'POST',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/iatu/topups',
method: 'POST',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/iatu/topups")
.post(null)
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'POST',
hostname: 'example.com',
port: null,
path: '/baseUrl/iatu/topups',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'POST',
url: '{{baseUrl}}/iatu/topups',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('POST', '{{baseUrl}}/iatu/topups');
req.headers({
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'POST',
url: '{{baseUrl}}/iatu/topups',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/iatu/topups';
const options = {
method: 'POST',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-idt-beyond-app-id": @"",
@"x-idt-beyond-app-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/iatu/topups"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/iatu/topups" in
let headers = Header.add_list (Header.init ()) [
("x-idt-beyond-app-id", "");
("x-idt-beyond-app-key", "");
] in
Client.call ~headers `POST uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/iatu/topups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-idt-beyond-app-id: ",
"x-idt-beyond-app-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('POST', '{{baseUrl}}/iatu/topups', [
'headers' => [
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/iatu/topups');
$request->setMethod(HTTP_METH_POST);
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/iatu/topups');
$request->setRequestMethod('POST');
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/iatu/topups' -Method POST -Headers $headers
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/iatu/topups' -Method POST -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-idt-beyond-app-id': "",
'x-idt-beyond-app-key': ""
}
conn.request("POST", "/baseUrl/iatu/topups", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/iatu/topups"
headers = {
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
}
response = requests.post(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/iatu/topups"
response <- VERB("POST", url, add_headers('x-idt-beyond-app-id' = '', 'x-idt-beyond-app-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/iatu/topups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-idt-beyond-app-id"] = ''
request["x-idt-beyond-app-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.post('/baseUrl/iatu/topups') do |req|
req.headers['x-idt-beyond-app-id'] = ''
req.headers['x-idt-beyond-app-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/iatu/topups";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-idt-beyond-app-id", "".parse().unwrap());
headers.insert("x-idt-beyond-app-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.post(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request POST \
--url {{baseUrl}}/iatu/topups \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: '
http POST {{baseUrl}}/iatu/topups \
x-idt-beyond-app-id:'' \
x-idt-beyond-app-key:''
wget --quiet \
--method POST \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: ' \
--output-document \
- {{baseUrl}}/iatu/topups
import Foundation
let headers = [
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/iatu/topups")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
Current promotions
{{baseUrl}}/iatu/products/promotions
HEADERS
x-idt-beyond-app-id
x-idt-beyond-app-key
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/iatu/products/promotions");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-idt-beyond-app-id: ");
headers = curl_slist_append(headers, "x-idt-beyond-app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/iatu/products/promotions" {:headers {:x-idt-beyond-app-id ""
:x-idt-beyond-app-key ""}})
require "http/client"
url = "{{baseUrl}}/iatu/products/promotions"
headers = HTTP::Headers{
"x-idt-beyond-app-id" => ""
"x-idt-beyond-app-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/iatu/products/promotions"),
Headers =
{
{ "x-idt-beyond-app-id", "" },
{ "x-idt-beyond-app-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/iatu/products/promotions");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-idt-beyond-app-id", "");
request.AddHeader("x-idt-beyond-app-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/iatu/products/promotions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-idt-beyond-app-id", "")
req.Header.Add("x-idt-beyond-app-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/iatu/products/promotions HTTP/1.1
X-Idt-Beyond-App-Id:
X-Idt-Beyond-App-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/iatu/products/promotions")
.setHeader("x-idt-beyond-app-id", "")
.setHeader("x-idt-beyond-app-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/iatu/products/promotions"))
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/iatu/products/promotions")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/iatu/products/promotions")
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/iatu/products/promotions');
xhr.setRequestHeader('x-idt-beyond-app-id', '');
xhr.setRequestHeader('x-idt-beyond-app-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/products/promotions',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/iatu/products/promotions';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/iatu/products/promotions',
method: 'GET',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/iatu/products/promotions")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/iatu/products/promotions',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/products/promotions',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/iatu/products/promotions');
req.headers({
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/products/promotions',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/iatu/products/promotions';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-idt-beyond-app-id": @"",
@"x-idt-beyond-app-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/iatu/products/promotions"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/iatu/products/promotions" in
let headers = Header.add_list (Header.init ()) [
("x-idt-beyond-app-id", "");
("x-idt-beyond-app-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/iatu/products/promotions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-idt-beyond-app-id: ",
"x-idt-beyond-app-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/iatu/products/promotions', [
'headers' => [
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/iatu/products/promotions');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/iatu/products/promotions');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/iatu/products/promotions' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/iatu/products/promotions' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-idt-beyond-app-id': "",
'x-idt-beyond-app-key': ""
}
conn.request("GET", "/baseUrl/iatu/products/promotions", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/iatu/products/promotions"
headers = {
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/iatu/products/promotions"
response <- VERB("GET", url, add_headers('x-idt-beyond-app-id' = '', 'x-idt-beyond-app-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/iatu/products/promotions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-idt-beyond-app-id"] = ''
request["x-idt-beyond-app-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/iatu/products/promotions') do |req|
req.headers['x-idt-beyond-app-id'] = ''
req.headers['x-idt-beyond-app-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/iatu/products/promotions";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-idt-beyond-app-id", "".parse().unwrap());
headers.insert("x-idt-beyond-app-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/iatu/products/promotions \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: '
http GET {{baseUrl}}/iatu/products/promotions \
x-idt-beyond-app-id:'' \
x-idt-beyond-app-key:''
wget --quiet \
--method GET \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: ' \
--output-document \
- {{baseUrl}}/iatu/products/promotions
import Foundation
let headers = [
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/iatu/products/promotions")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
Mobile number validation
{{baseUrl}}/iatu/number-validator
HEADERS
x-idt-beyond-app-id
x-idt-beyond-app-key
QUERY PARAMS
country_code
mobile_number
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-idt-beyond-app-id: ");
headers = curl_slist_append(headers, "x-idt-beyond-app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/iatu/number-validator" {:headers {:x-idt-beyond-app-id ""
:x-idt-beyond-app-key ""}
:query-params {:country_code ""
:mobile_number ""}})
require "http/client"
url = "{{baseUrl}}/iatu/number-validator?country_code=&mobile_number="
headers = HTTP::Headers{
"x-idt-beyond-app-id" => ""
"x-idt-beyond-app-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/iatu/number-validator?country_code=&mobile_number="),
Headers =
{
{ "x-idt-beyond-app-id", "" },
{ "x-idt-beyond-app-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-idt-beyond-app-id", "");
request.AddHeader("x-idt-beyond-app-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/iatu/number-validator?country_code=&mobile_number="
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-idt-beyond-app-id", "")
req.Header.Add("x-idt-beyond-app-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/iatu/number-validator?country_code=&mobile_number= HTTP/1.1
X-Idt-Beyond-App-Id:
X-Idt-Beyond-App-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=")
.setHeader("x-idt-beyond-app-id", "")
.setHeader("x-idt-beyond-app-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/iatu/number-validator?country_code=&mobile_number="))
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=")
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=');
xhr.setRequestHeader('x-idt-beyond-app-id', '');
xhr.setRequestHeader('x-idt-beyond-app-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/number-validator',
params: {country_code: '', mobile_number: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=',
method: 'GET',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/iatu/number-validator?country_code=&mobile_number=',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/number-validator',
qs: {country_code: '', mobile_number: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/iatu/number-validator');
req.query({
country_code: '',
mobile_number: ''
});
req.headers({
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/iatu/number-validator',
params: {country_code: '', mobile_number: ''},
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-idt-beyond-app-id": @"",
@"x-idt-beyond-app-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/iatu/number-validator?country_code=&mobile_number="]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=" in
let headers = Header.add_list (Header.init ()) [
("x-idt-beyond-app-id", "");
("x-idt-beyond-app-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-idt-beyond-app-id: ",
"x-idt-beyond-app-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=', [
'headers' => [
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/iatu/number-validator');
$request->setMethod(HTTP_METH_GET);
$request->setQueryData([
'country_code' => '',
'mobile_number' => ''
]);
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/iatu/number-validator');
$request->setRequestMethod('GET');
$request->setQuery(new http\QueryString([
'country_code' => '',
'mobile_number' => ''
]));
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-idt-beyond-app-id': "",
'x-idt-beyond-app-key': ""
}
conn.request("GET", "/baseUrl/iatu/number-validator?country_code=&mobile_number=", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/iatu/number-validator"
querystring = {"country_code":"","mobile_number":""}
headers = {
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json())
library(httr)
url <- "{{baseUrl}}/iatu/number-validator"
queryString <- list(
country_code = "",
mobile_number = ""
)
response <- VERB("GET", url, query = queryString, add_headers('x-idt-beyond-app-id' = '', 'x-idt-beyond-app-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-idt-beyond-app-id"] = ''
request["x-idt-beyond-app-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/iatu/number-validator') do |req|
req.headers['x-idt-beyond-app-id'] = ''
req.headers['x-idt-beyond-app-key'] = ''
req.params['country_code'] = ''
req.params['mobile_number'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/iatu/number-validator";
let querystring = [
("country_code", ""),
("mobile_number", ""),
];
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-idt-beyond-app-id", "".parse().unwrap());
headers.insert("x-idt-beyond-app-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.query(&querystring)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url '{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=' \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: '
http GET '{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=' \
x-idt-beyond-app-id:'' \
x-idt-beyond-app-key:''
wget --quiet \
--method GET \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: ' \
--output-document \
- '{{baseUrl}}/iatu/number-validator?country_code=&mobile_number='
import Foundation
let headers = [
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/iatu/number-validator?country_code=&mobile_number=")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
GET
Status check
{{baseUrl}}/status
HEADERS
x-idt-beyond-app-id
x-idt-beyond-app-key
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/status");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "x-idt-beyond-app-id: ");
headers = curl_slist_append(headers, "x-idt-beyond-app-key: ");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/status" {:headers {:x-idt-beyond-app-id ""
:x-idt-beyond-app-key ""}})
require "http/client"
url = "{{baseUrl}}/status"
headers = HTTP::Headers{
"x-idt-beyond-app-id" => ""
"x-idt-beyond-app-key" => ""
}
response = HTTP::Client.get url, headers: headers
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/status"),
Headers =
{
{ "x-idt-beyond-app-id", "" },
{ "x-idt-beyond-app-key", "" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/status");
var request = new RestRequest("", Method.Get);
request.AddHeader("x-idt-beyond-app-id", "");
request.AddHeader("x-idt-beyond-app-key", "");
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-idt-beyond-app-id", "")
req.Header.Add("x-idt-beyond-app-key", "")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/status HTTP/1.1
X-Idt-Beyond-App-Id:
X-Idt-Beyond-App-Key:
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/status")
.setHeader("x-idt-beyond-app-id", "")
.setHeader("x-idt-beyond-app-key", "")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/status"))
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/status")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/status")
.header("x-idt-beyond-app-id", "")
.header("x-idt-beyond-app-key", "")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/status');
xhr.setRequestHeader('x-idt-beyond-app-id', '');
xhr.setRequestHeader('x-idt-beyond-app-key', '');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/status',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/status';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/status',
method: 'GET',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/status")
.get()
.addHeader("x-idt-beyond-app-id", "")
.addHeader("x-idt-beyond-app-key", "")
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/status',
headers: {
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/status',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/status');
req.headers({
'x-idt-beyond-app-id': '',
'x-idt-beyond-app-key': ''
});
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/status',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/status';
const options = {
method: 'GET',
headers: {'x-idt-beyond-app-id': '', 'x-idt-beyond-app-key': ''}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSDictionary *headers = @{ @"x-idt-beyond-app-id": @"",
@"x-idt-beyond-app-key": @"" };
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/status"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
[request setAllHTTPHeaderFields:headers];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/status" in
let headers = Header.add_list (Header.init ()) [
("x-idt-beyond-app-id", "");
("x-idt-beyond-app-key", "");
] in
Client.call ~headers `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/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 => [
"x-idt-beyond-app-id: ",
"x-idt-beyond-app-key: "
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/status', [
'headers' => [
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => '',
],
]);
echo $response->getBody();
setUrl('{{baseUrl}}/status');
$request->setMethod(HTTP_METH_GET);
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/status');
$request->setRequestMethod('GET');
$request->setHeaders([
'x-idt-beyond-app-id' => '',
'x-idt-beyond-app-key' => ''
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-WebRequest -Uri '{{baseUrl}}/status' -Method GET -Headers $headers
$headers=@{}
$headers.Add("x-idt-beyond-app-id", "")
$headers.Add("x-idt-beyond-app-key", "")
$response = Invoke-RestMethod -Uri '{{baseUrl}}/status' -Method GET -Headers $headers
import http.client
conn = http.client.HTTPSConnection("example.com")
headers = {
'x-idt-beyond-app-id': "",
'x-idt-beyond-app-key': ""
}
conn.request("GET", "/baseUrl/status", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/status"
headers = {
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
}
response = requests.get(url, headers=headers)
print(response.json())
library(httr)
url <- "{{baseUrl}}/status"
response <- VERB("GET", url, add_headers('x-idt-beyond-app-id' = '', 'x-idt-beyond-app-key' = ''), content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-idt-beyond-app-id"] = ''
request["x-idt-beyond-app-key"] = ''
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/status') do |req|
req.headers['x-idt-beyond-app-id'] = ''
req.headers['x-idt-beyond-app-key'] = ''
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/status";
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("x-idt-beyond-app-id", "".parse().unwrap());
headers.insert("x-idt-beyond-app-key", "".parse().unwrap());
let client = reqwest::Client::new();
let response = client.get(url)
.headers(headers)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/status \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: '
http GET {{baseUrl}}/status \
x-idt-beyond-app-id:'' \
x-idt-beyond-app-key:''
wget --quiet \
--method GET \
--header 'x-idt-beyond-app-id: ' \
--header 'x-idt-beyond-app-key: ' \
--output-document \
- {{baseUrl}}/status
import Foundation
let headers = [
"x-idt-beyond-app-id": "",
"x-idt-beyond-app-key": ""
]
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/status")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()