You can set up a Stook account using the following information with API:

Parametreler

 

Return Values

 

PHP Example:

<?php
$curl_post_data = array(
    'user_key'   => 'Your User Key',
    'user_secret'  =>'Your User Secret',
    'label'   => 'Zone Label', 
);
$request_body = json_encode($curl_post_data);
$service_url = 'https://api.medianova.com/v1/zone/create/stook';
$ch = curl_init($service_url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");                                                                     
curl_setopt($ch, CURLOPT_POSTFIELDS, $request_body);                                                                  
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);                                                                      
curl_setopt($ch, CURLOPT_HTTPHEADER, array(                                                                          
    'Content-Type: application/json',                                                                                
    'Content-Length: ' . strlen($request_body))                                                                       
); 
$response = curl_exec($ch);
$decoded = json_decode($response);
var_dump($decoded);  
?>

Return Example:

{
    "status": true,
    "data": {
        "id": 4707,
        "label": "Stook Label",
        "name": "0fbf7c5ca",
        "cdn_url": "0fbf7c5ca.mncdn.com",
        "access_key": "Access-Key",
        "secret_key": "Secret-Key",
        "status": true
    },
    "opid": "SIGQbiL1gKFNJwjx"
}