Stook Zone Delete
Using the information below, you can delete the Zone for your Stook service with API
Method | DELETE |
Link | https://api.medianova.com/v1/zone/delete/stook |
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
status | bool |
data | object |
Example PHP Code
<?php $curl_post_data = array( 'user_key' => 'Your User Key', 'user_secret' =>'Your User Secret', 'zone_id' => 'Your Zone Id', ); $request_body = json_encode($curl_post_data); $service_url = 'https://api.medianova.com/v1/zone/delete/stook'; $ch = curl_init($service_url); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); 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); ?>
Example Output
{ "status": true, "opid": "SIGQbiL1gKFNJwjx" }