extendRentState


URL

https://onlinesim.io/api/rent/extendRentState.php?apikey=APIKEY&tzid=1&days=30

Renewal of a purchased rent number

Example

  • javascript
    var settings = {
        "async": true,
        "crossDomain": true,
        "url": "https://onlinesim.io/api/rent/extendRentState.php?apikey=APIKEY&tzid=1&days=30",
        "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/extendRentState.php?apikey=APIKEY&tzid=1&days=30",
        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
tzid required INT operation id
days required INT Number of days to renew a room. rent Number param extend

Result

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

json {response:1, item => []}

Result Description
response 1, if the request is successful, or an error message
item Operation. see description in getRentNum