<?php // apiCallSample.php require 'RestClient.php'; $client = new RestClient('http://localhost/mymailadmin/public/', '', ''); $response = $client->get('user'); //return the list of objects {{id:1, username:'Jack'}, {id:2, username:'Nick'}} print_r($response);