PHP Classes
elePHPant
Icontem

File: examples/serverlisting.php

Recommend this page to a friend!
  Classes of Jason Gillman Jr.  >  StormOnDemand API  >  examples/serverlisting.php  >  Download  
File: examples/serverlisting.php
Role: Example script
Content type: text/plain
Description: Example script
Class: StormOnDemand API
Manage hosting services using Storm On Demand API
Author: By
Last change: Had to update docs and examples to reflect namespaced nature
Date: 3 years ago
Size: 471 bytes
 

Contents

Class file image Download
<?php
   
require_once('../StormAPI.class.php');
   
   
$apiUser = "api_user";
   
$apiPass = "api_pass";
   
$apiMethod = "storm/server/list";
   
$paramsArray = FALSE;
   
$apiVersion = "v1";
   
   
$storm = new \LiquidWeb\StormAPI($apiUser, $apiPass, $apiMethod, $paramsArray, $apiVersion);
   
   
$storm->addParam("page_size", 999);
   
$results = $storm->request();
   
    foreach(
$results['items'] as $item)
    {
        echo
$item['domain'] . " || " . $item['uniq_id'] . "\n";
    }
?>