/cloud/image/get_changelog


GET https://api.sitehost.nz/1.3/cloud/image/get_changelog.json

Returns the change log for a public SiteHost image.

Query Parameters

ParameterTypeRequiredDescription
client_idintegerYesThe ID for the client who is requesting the change log.Example: 1
codestringYesThe code for the image.Example: sitehost-php55

Code Samples

JavaScript PHP Rails Python
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", "https://api.sitehost.nz/1.3/cloud/image/get_changelog.json?apikey=your_key_here&client_id=1&code=sitehost-php55", false);

xmlHttp.send();

var response = xmlHttp.responseText;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.sitehost.nz/1.3/cloud/image/get_changelog.json?apikey=your_key_here&client_id=1&code=sitehost-php55");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
require 'net/http'
require 'uri'

uri = URI.parse("https://api.sitehost.nz/1.3/cloud/image/get_changelog.json?apikey=your_key_here&client_id=1&code=sitehost-php55")
http = Net::HTTP.new(uri.host, uri.port)
request = Net::HTTP::Get.new(uri.request_uri)

response = http.request(request)
import requests

uri = 'https://api.sitehost.nz/1.3/cloud/image/get_changelog.json?apikey=your_key_here&client_id=1&code=sitehost-php55'

response = requests.get(uri)

Response

200:

application/json
{
    "return": {
        "code": "sitehost-php55",
        "label": "None",
        "changelog": "**VERSION: 1.0.0**\n  - php 5.5.30\n\n**VERSION: 1.0.1**\n ..."
    },
    "msg": "Successful",
    "status": true
}