Purge Info
This operation returns the purge status of your requests.
Parameters
Return Values
Status Info
Example PHP Code
<?php $user_key="Your User Key"; $user_secret="Your User Secret"; $zone_id="Zone Id"; $limit="Limit Count"; $service_url = 'https://api.medianova.com/v1/zone/purge/info?user_key='.$user_key.'&user_secret='.$user_secret.'&zone_id='.$zone_id.'&limit='.$limit; $ch = curl_init($service_url); curl_setopt($ch,CURLOPT_CRLF, true); $curl_response = curl_exec($ch); curl_close($ch); $decoded = json_decode($curl_response); var_dump($decoded); ?>
Example Output
{ "status": true, "data": { "total": 11, "limit": 10, "page": 1, "pages": 1, "search": null, "requests": [ { "purge_id": "1475588831-LhXemdU0", "purge_date": null, "url": "http://assets.mncdn.com/style.css", "status": 0, "message": "There is no file in cache." }, { "purge_id": "1475588831-m8vjnwun", "purge_date": null, "url": "http://assets.mncdn.com/script.js", "status": 0, "message": "There is no file in cache." }, { "purge_id": "1475586176-ORpnWNAq", "purge_date": null, "url": "http://assets.mncdn.com/bg-img.png", "status": 2, "message": "The operation waiting to be processed." }, { "purge_id": "1475586176-5fokOpYh", "purge_date": null, "url": "http://assets.mncdn.com/img-12.jpg", "status": 2, "message": "The operation waiting to be processed." }, { "purge_id": "1475585994-Otpr3uD6", "purge_date": null, "url": "http://assets.mncdn.com/img-12.jpg", "status": 2, "message": "The operation waiting to be processed." }, { "purge_id": "1475585994-xUP4mRdB", "purge_date": "2016-10-01 10:00:21", "url": "http://assets.mncdn.com/img-2.png", "status": 1, "message": "The purge operation has been successfully." }, { "purge_id": "1475585573-ZStGyaJ3", "purge_date": null, "url": "http://assets.mncdn.com/img-1.jpg", "status": 0, "message": "There is no file in cache." }, { "purge_id": "1475585393-vLCeBkf0", "purge_date": "2016-09-30 12:15:25", "url": "http://assets.mncdn.com/img-2.png", "status": 1, "message": "The purge operation has been successfully." }, { "purge_id": "1475585370-TAybEFoZ", "purge_date": null, "url": "http://assets.mncdn.com/img-4.jpg", "status": 0, "message": "There is no file in cache." }, { "purge_id": "1475585113-4EULkMeJ", "purge_date": null, "url": "http://assets.mncdn.com/img-3.jpg", "status": 0, "message": "There is no file in cache." } ] } }
Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.