imageGetList
public static array imageGetList(string token,int pagenumber,int pagesize)
Get the list of Images in the client's Image Gallery.
- <?php
- /**
- This Example shows how to authenticate a user using XML-RPC.
- Note that we are using the PEAR XML-RPC client and recommend others do as well.
- **/
- require_once 'XML/RPC2/Client.php';
- require_once 'inc/config.php';
- $client = XML_RPC2_Client::create($apiURL);
- $token = $client->login($apiLogin, $apiPassword);
- $ImageList = $client->imageGetList($token, 1,10);
-
- foreach($ImageList as $rec) {
- echo $rec['sequence'] . "] Client ID: " . $rec['client_id'] . "(" . $rec['id'] . ")";
- echo "\t Path of the Image:" . $rec['image_path_virtual'];
- echo "\t Width of the Image:" . $rec['image_w'] ;
- echo "\t Hight of the Image:" . $rec['image_h'] ;
- echo "\t Size of the Image: " . $rec['image_size'] ;
- echo "<br />";
- }
-
- ?>