/srs/get_company_info


GET https://api.sitehost.nz/1.0/srs/get_company_info.json

Returns company information.

Query Parameters

ParameterTypeRequiredDescription
client_idintegerYesThe ID for the client.Example: 1

Code Samples

JavaScript PHP Rails Python
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", "https://api.sitehost.nz/1.0/srs/get_company_info.json?apikey=your_key_here&client_id=1", false);

xmlHttp.send();

var response = xmlHttp.responseText;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.sitehost.nz/1.0/srs/get_company_info.json?apikey=your_key_here&client_id=1");
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.0/srs/get_company_info.json?apikey=your_key_here&client_id=1")
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.0/srs/get_company_info.json?apikey=your_key_here&client_id=1'

response = requests.get(uri)

Response

200:

application/json
{
  "return": {
    "client_id": "1",
    "companyname": "SiteHost Ltd",
    "companyurl": "http://www.sitehost.co.nz",
    "companyrenewurl": "http://www.sitehost.co.nz",
    "companyemail": "domains@sitehost.co.nz",
    "companyemailfrom": "support@sitehost.co.nz",
    "companyemailfromname": "SiteHost",
    "companysupportemail": "domains@sitehost.co.nz",
    "companyphone": "+64 09 974 2182",
    "companyfax": "+64 09 525 7566",
    "send_renewed_email": "1",
    "send_invoice": "1",
    "default_registration_period": "12"
  },
  "msg": "Successful",
  "status": true,
  "time": 11.63
}