setOperationRevise


URL

https://onlinesim.ru/api/setOperationRevise.php?apikey=APIKEY&tzid=1234

It creates a request for elaboration of response on the operation.

It should be used if a wrong code has been received. This method sends a request to a different code in case if multiple SMSs have been received at the same number with different codes.

Example

  • javascript
    var settings = {
        "async": true,
        "crossDomain": true,
        "url": "https://onlinesim.ru/api/setOperationRevise.php?apikey=APIKEY&tzid=1234",
        "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.ru/api/setOperationRevise.php?apikey=APIKEY&tzid=1234",
        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));

Parameters

Name of parameter Parameter Type of data Description
tzid required INT operation identifier

Result

After the successful completion, you will get a response in the JSON format, in the following form:

json {response:RESPONSE, tzid:TZID}

Result Description
tzid operation ID
response 1, if the request has been completed successfully, or an error message;