PHP Client Library for Switchvox Extend
A simple library to interface with the Extend API.
Synopsis
For more detailed information on the Extend API Core methods please visit the
Documentation Wiki.
On the Wiki you will find a full listing of supported API methods and parameters to use with the PHP Client Library.
Install Instructions
Below are some quick install instructions on how to get up and running with the Switchvox PHP Library.
*Note: These instructions are for the Linux OS and might vary based on the type of Linux OS you have installed.
1. Make sure you have PHP (4.0+), PHP-Devel (4.0+), and PEAR (1.4+) installed.
2. Install PEAR and PCEL Packages:
pear install XML_Serializer-0.19.2
pecl install pecl_http
3. Download the Switchvox Extend API Client Library
wget http://developers.digium.com/switchvox/client_libraries/SwitchvoxPHPLibrary.tar.gz
4. Uncompress it into your web directory
tar -zxvf SwitchvoxPHPLibrary.tar.gz
5. Start Programming
Usage Example
require_once("SwitchvoxRequest.php");
$request = new SwitchvoxRequest("YOUR.PBX.IP.OR.HOSTNAME", "admin", "ADMIN.PASSWORD");
$requestParams = array( 'account_ids' => array('account_id' => array( 1101, 1102) ) );
$response = $request->send("switchvox.extensions.getInfo", $requestParams);
print_r($response);
Feedback
Problems? Comments? Enhancements? Email us at
api@switchvox.com.