Skip to main content

Progressive Geoblocking Passive

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

Parameters

Parameter

Type

Required

Description

user_key

string

Yes

API User Token

user_secret

string

Yes

API User Secret Token

zone_ids

array

Yes

Rule Ids

rule_ids

array

Yes

Rule Ids

Return Values

Variable

Type

status

bool

data

object

Example PHP Code

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

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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.