This operation returns warmup status of your requests.

Parameters

Return Values

PHP Example

<?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/warmup/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": [
      {
        "warmup_id": "1475588831-LhXemdU0",
        "warmup_date": null,
        "url": "http://assets.mncdn.com/style.css",
        "status": 0,
        "message": "There is no file."
      },
      {
        "warmup_id": "1475588831-m8vjnwun",
        "warmup_date": null,
        "url": "http://assets.mncdn.com/script.js",
        "status": 0,
        "message": "There is no file."
      },
      {
        "warmup_id": "1475586176-ORpnWNAq",
        "warmup_date": null,
        "url": "http://assets.mncdn.com/bg-img.png",
        "status": 2,
        "message": "The operation waiting to be processed."
      },
      {
        "warmup_id": "1475586176-5fokOpYh",
        "warmup_date": null,
        "url": "http://assets.mncdn.com/img-12.jpg",
        "status": 2,
        "message": "The operation waiting to be processed."
      },
      {
        "warmup_id": "1475585994-Otpr3uD6",
        "warmup_date": null,
        "url": "http://assets.mncdn.com/img-12.jpg",
        "status": 2,
        "message": "The operation waiting to be processed."
      },
      {
        "warmup_id": "1475585994-xUP4mRdB",
        "warmup_date": "2016-10-01 10:00:21",
        "url": "http://assets.mncdn.com/img-2.png",
        "status": 1,
        "message": "The warmup operation has been successfully."
      },
      {
        "warmup_id": "1475585573-ZStGyaJ3",
        "warmup_date": null,
        "url": "http://assets.mncdn.com/img-1.jpg",
        "status": 0,
        "message": "There is no file."
      },
      {
        "warmup_id": "1475585393-vLCeBkf0",
        "warmup_date": "2016-09-30 12:15:25",
        "url": "http://assets.mncdn.com/img-2.png",
        "status": 1,
        "message": "The warmup operation has been successfully."
      },
      {
        "warmup_id": "1475585370-TAybEFoZ",
        "warmup_date": null,
        "url": "http://assets.mncdn.com/img-4.jpg",
        "status": 0,
        "message": "There is no file."
      },
      {
        "warmup_id": "1475585113-4EULkMeJ",
        "warmup_date": null,
        "url": "http://assets.mncdn.com/img-3.jpg",
        "status": 0,
        "message": "There is no file."
      }
    ]
  }

 

Was this post helpful?