Geoblocking List
This operation allows you to list Geoblocking for your stream live zone.
Method | Link |
GET |
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
user_key | string | Yes | API User Token |
user_secret | string | Yes | API User Secret Token |
zone_ids | array | Yes | Stream Zone Ids |
status | number | No | 1 is active, 0 is passive |
page | number | No | Page number |
limit | number | No | List limit, max 1000 |
Example PHP Code
CODE
<?php
$user_key="Your User Key";
$user_secret="Your User Secret";
$service_url = 'https://api.medianova.com/v1/geoblocking/stream/list?user_key='.$user_key.'&user_secret='.$user_secret.'&zone_ids[]={zone_id}';
$ch = curl_init($service_url);
curl_setopt($ch,CURLOPT_CRLF, true);
$curl_response = curl_exec($ch);curl_close($curl);
$decoded = json_decode($curl_response);?>
Example Output
CODE
{
"status":
true,
"data": {
"count": 1,
"page": 1,
"limit": 100,
"rules": [
{
"id": 8971,
"zone_id": 6228,
"label": "Geoblock Label",
"status": 1,
"created_at": "2018-08-27T15:41:08+0300",
"start_date": "2018-08-27 15:45:00",
"end_date": "2018-08-27 15:55:00",
"countries": [
"AO"
],
"white_ip_list": [],
"black_ip_list": []
}
]
},
"opid": "IuNYKCU4rALwVa9k"
}