Stream Zone Status (Active/Passive)

You can activate or deacivate your stream zones.

Method

PUT

Link-(for active)

https://api.medianova.com/v1/zone/stream/active

Link-(for passive)

https://api.medianova.com/v1/zone/stream/passive

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

status bool
data objects

PHP Example

<?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

"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  
}
}