Skip to main content

Geoblocking Active

This operation allows you to active to your passive Geoblocking for your stream live zone.

Parameters

Parameter

Type

Required

Description

user_key

string

Yes

API User Token

user_secret

string

Yes

API User Secret Token

rule_ids

array

Yes

Rule Ids

Return Values

Variable

Type

status

bool

opid

string

Example PHP Code

CODE
<?php
$curl_post_data = array(    
'user_key'   => 'Your User Key',    
'user_secret'  =>'Your User Secret',    
'rule_id' => ['rule_id1', 'rule_id2']);
$request_body = json_encode($curl_post_data);
$service_url = 'https://api.medianova.com/v1/geoblocking/active';
$ch = curl_init($service_url);curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");                                                                    
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.