tariffsRent


URL

https://onlinesim.io/api/rent/tariffsRent.php?apikey=APIKEY

Tariffs and other parameters.

Example

  • javascript
    var settings = {
        "async": true,
        "crossDomain": true,
        "url": "https://onlinesim.io/api/rent/tariffsRent.php?apikey=APIKEY",
        "method": "GET",
        "headers": {"accept": "application/json"}
    }
    $.ajax(settings).done(function (response) {
        console.log(response);
    });
  • php
    $curl = curl_init();
    curl_setopt_array($curl, array(
        CURLOPT_URL => "https://onlinesim.io/api/rent/tariffsRent.php?apikey=APIKEY",
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_SSL_VERIFYHOST => false,
        CURLOPT_SSL_VERIFYPEER => false,
        CURLOPT_HTTPHEADER => [
            "Content-Type: application/json",
        ]
    ));
    $response = curl_exec($curl);
    curl_close($curl);
    var_dump(json_decode($response, true));

Options

Parameter Name Parameter Data type Description
country non-required INT Country, if you pass the parameter, it will return only the desired country.

Result

After successful execution, a response will be received in JSON format, as follows:

json [7: {code: 7,enabled: true,name: "russia",new: true, days: {1: 100,7: 350,15: 600,30: 900,},position: 7,count: "1",}, ...]

Result Description
code Country code
enabled true - the country is available for order
name Country name
new true - country added recently
days Room rental price: {number of days: price, ...}
position parameter for sorting in the interface
count Number of rooms available {number of days: count, ...}