Skip to main content

Progressive Geoblocking Add

Using the information below, you can add a new Geoblock for your progressive zone.

Parameters

Parameter

Type

Required

Description

user_key

string

Yes

API User Token

user_secret

string

Yes

API User Secret Token

zone_ids

array

Yes

Zone Ids

403_url

string

No

Link should be a valid web link.

countries

array

Yes

This field should include code of countries. If type parameter is not given, defaults to list of allowed countries.

white_ip_list

array

No

List of IP's which will bypass the geo blocking in the countries where stream is blocked. It's must be IPv4 or emtpy.

type

string

No

"allowed" or "blocked". If none given, default value is "allowed".

Return Values

Variable

Type

status

bool

data

object

Example PHP Code

CODE
<?php
$curl_post_data = array(
    'user_key'   => 'Your User Key',
    'user_secret'  =>'Your User Secret',
    'zone_ids' => ['zoneid1', 'zoneid2'],
    'countries' => ['county_code1', 'country_code2']
);
$request_body = json_encode($curl_post_data);
$service_url = 'https://api.medianova.com/v1/geoblocking/progressive/add';
$ch = curl_init($service_url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");                                                                    
curl_setopt($ch, CURLOPT_POSTFIELDS, $request_body);                                                                 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);                                                                     
curl_setopt($ch, CURLOPT_HTTPHEADER, array(                                                                         
    'Content-Type: application/json',                                                                               
    'Content-Length: ' . strlen($request_body))                                                                      
);
$response = curl_exec($ch);
$decoded = json_decode($response);
var_dump($decoded); 
?>

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.