Skip to main content

Stook Zone List

Using the information below, you can list the zone in your Stook service with the API.

Parameters

Parameter

Type

Required

Description

user_key

string

Yes

API User Key

user_secret

string

Yes

API User Secret

zone_id

integer

Yes

Zone Id

Return Values

Variable

Type

status

bool

data

object

Example PHP Code

CODE
<?php
$user_key="Your User Key"; 
$user_secret="Your User Secret";
$service_url = 'https://api.medianova.com/v1/zone/list?user_key='.$user_key.'&user_secret='.$user_secret;
$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": {
        "Your Group": {
           "fd1cb4b62.mncdn.com": {
                "zone_id": 4706,
                "name": "fd1cb4b62.mncdn.com",
                "alias": "fd1cb4b62.mncdn.com",
                "type": "Stook"
            },
            "ac86cb64c.mncdn.com": {
                "zone_id": 4714,
                "name": "ac86cb64c.mncdn.com",
                "alias": "ac86cb64c.mncdn.com",
                "type": "Stook"
            }
        }
    },
    "opid": "576UWnEydPJfXAYB"
}

JavaScript errors detected

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

If this problem persists, please contact our support.