Stream Zone Status (Active/Passive)
You can activate or deactivate your stream zones.
Method | Link-(for active) | Link-(for passive) |
---|---|---|
PUT |
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
user_key | string | Yes | API User Token |
user_secret | string | Yes | API User Secret Token |
zone_id | integer | Yes | Zone ID |
Return Values
Variable | Type |
---|---|
status | bool |
data | objects |
Example PHP Code
CODE
<?php
$service_url = 'https://api.medianova.com/v1/zone/stream/active';
$ch = curl_init($service_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
$data = array( 'user_key' =>'...........',
'user_secret' =>'...........',
'zone_id' =>'.............');
curl_setopt($ch, CURLOPT_POSTFIELDS,
http_build_query($data));$response = curl_exec($ch);
echo curl_exec($ch);curl_close($ch);$decoded = json_decode($response); ?>
Example Output
CODE
"status": true,
"data": { "cdn_url": "mn-nl.mncdn.com",
"label": "Test Zone",
"name": "api-zone-live",
"origin_pull_domain":
"http://89.xxx.xxx.25:1930/live-test",
"status": true,
"zone_id": 1
}
}