curl -X GET \
'https://api.remitradar.com/GetCompanyQuote?CompanyId={CompanyId}&CountryFrom={CountryFrom}&CountryTo={CountryTo}&CurrencyFrom={CurrencyFrom}&CurrencyTo={CurrencyTo}&AmountFrom={AmountFrom}&TypeDeliveryFrom={TypeDeliveryFrom}&TypeDeliveryTo={TypeDeliveryTo}' \
-H 'accept: application/json' \
-H 'x-api-key:Your_Secret_Key'
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.remitradar.com/GetCompanyQuote?CompanyId={CompanyId}&CountryFrom={CountryFrom}&CountryTo={CountryTo}&CurrencyFrom={CurrencyFrom}&CurrencyTo={CurrencyTo}&AmountFrom={AmountFrom}&TypeDeliveryFrom={TypeDeliveryFrom}&TypeDeliveryTo={TypeDeliveryTo}")
.get()
.addHeader("accept", "application/json")
.addHeader("x-api-key", "Your_Secret_Key")
.build();
Response response = client.newCall(request).execute();
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.remitradar.com/GetCompanyQuote?CompanyId={CompanyId}&CountryFrom={CountryFrom}&CountryTo={CountryTo}&CurrencyFrom={CurrencyFrom}&CurrencyTo={CurrencyTo}&AmountFrom={AmountFrom}&TypeDeliveryFrom={TypeDeliveryFrom}&TypeDeliveryTo={TypeDeliveryTo}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("accept", "application/json")
req.Header.Add("x-api-key", "Your_Secret_Key")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /GetCompanyQuote?CompanyId={CompanyId}&CountryFrom={CountryFrom}&CountryTo={CountryTo}&CurrencyFrom={CurrencyFrom}&CurrencyTo={CurrencyTo}&AmountFrom={AmountFrom}&TypeDeliveryFrom={TypeDeliveryFrom}&TypeDeliveryTo={TypeDeliveryTo} HTTP/1.1
Host: api.remitradar.com
Accept: application/json
x-api-key:Your_Secret_Key
var data = null;
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("GET", "https://api.remitradar.com/GetCompanyQuote?CompanyId={CompanyId}&CountryFrom={CountryFrom}&CountryTo={CountryTo}&CurrencyFrom={CurrencyFrom}&CurrencyTo={CurrencyTo}&AmountFrom={AmountFrom}&TypeDeliveryFrom={TypeDeliveryFrom}&TypeDeliveryTo={TypeDeliveryTo}");
xhr.setRequestHeader("accept", "application/json");
xhr.setRequestHeader("x-api-key", "Your_Secret_Key");
xhr.send(data);
var client = new RestClient("https://api.remitradar.com/GetCompanyQuote?CompanyId={CompanyId}&CountryFrom={CountryFrom}&CountryTo={CountryTo}&CurrencyFrom={CurrencyFrom}&CurrencyTo={CurrencyTo}&AmountFrom={AmountFrom}&TypeDeliveryFrom={TypeDeliveryFrom}&TypeDeliveryTo={TypeDeliveryTo}");
var request = new RestRequest(Method.GET);
request.AddHeader("x-api-key", "Your_Secret_Key");
request.AddHeader("accept", "application/json");
IRestResponse response = client.Execute(request);
setUrl('https://api.remitradar.com/GetCompanyQuote');
$request->setMethod(HTTP_METH_GET);
$request->setQueryData(array(
'CompanyId' => '{CompanyId}',
'CountryFrom' => '{CountryFrom}',
'CountryTo' => '{CountryTo}',
'CurrencyFrom' => '{CurrencyFrom}',
'CurrencyTo' => '{CurrencyTo}',
'AmountFrom' => '{AmountFrom}',
'TypeDeliveryFrom' => '{TypeDeliveryFrom}',
'TypeDeliveryTo' => '{TypeDeliveryTo}'
));
$request->setHeaders(array(
'x-api-key' => 'Your_Secret_Key',
'accept' => 'application/json'
));
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
} ?>
var request = require("request");
var options = { method: 'GET',
url: 'https://api.remitradar.com/GetCompanyQuote',
qs: { CompanyId: '{CompanyId}', CountryFrom: '{CountryFrom}', CountryTo: '{CountryTo}', CurrencyFrom: '{CurrencyFrom}', CurrencyTo: '{CurrencyTo}', AmountFrom: '{AmountFrom}', TypeDeliveryFrom: '{TypeDeliveryFrom}', TypeDeliveryTo: '{TypeDeliveryTo}' },
headers:
{ 'x-api-key': 'Your_Secret_Key',
accept: 'application/json' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
import requests
url = "https://api.remitradar.com/GetCompanyQuote"
querystring = {"CompanyId":"{CompanyId}", "CountryFrom":"{CountryFrom}", "CountryTo":"{CountryTo}", "CurrencyFrom":"{CurrencyFrom}", "CurrencyTo":"{CurrencyTo}", "AmountFrom":"{AmountFrom}", "TypeDeliveryFrom":"{TypeDeliveryFrom}", "TypeDeliveryTo":"{TypeDeliveryTo}"}
headers = {
'accept': "application/json",
'x-api-key': "Your_Secret_Key"
}
response = requests.request("GET", url, headers=headers, params=querystring)
print(response.text)