Progressive Geoblock Passive

This operation allows you to passive your active Geoblocks for your progressive zone. This does not delete Geoblock.

Parameters

Return Values

Example PHP Code

<?php

$data = array(
    "user_key": "user_key",
    "user_secret": "user_secret",
    "zone_ids":zone_ids,
    "rule_ids": [rule_ids]
);

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.medianova.com/v1/geoblocking/passive",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => false,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => “PUT”,
  CURLOPT_POSTFIELDS => json_encode($data),
  CURLOPT_HTTPHEADER => array(
    "Content-Type: application/json"
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Example Output

{
    "status": true,
    "opid": "576UWnEydPJfXAYB"
}

 

 

 

Was this post helpful?