Geoblocking Update
This operation allows you to edit 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 |
zone_ids | integer | Yes | Zone ID |
countries | array | Yes | This field should contain country codes. |
rule_id | integer | No | Rule Id |
label | string | No | Label |
start_date | integer | No | It should be in Y-M-D H: M: S format. |
end_date | integer | No | It should be in Y-M-D H: M: S format. |
Example PHP Code
<?php
$curl_post_data = array( 'user_key' => 'Your User Key',
'user_secret' =>'Your User Secret',
'zone_ids' => ['zone_id1','zone_id2'],
'countries' => ['county_code1', 'country_code2']);
$request_body = json_encode($curl_post_data);
$service_url = 'https://api.medianova.com/v1/geoblocking/stream/edit';
$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
{
"status": true,
"opid": "576UWnEydPJfXAYB"
}