Skip to main content

Stream Zone Status (Active/Passive)

You can activate or deactivate your stream zones.

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

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.