/php_sdk

Aria Systems PHP SDK

Primary LanguagePHP

#Aria PHP SDK

The Aria PHP SDK is a collection of classes that make it easy to use the Aria REST and SOAP web services in your PHP application.

##Installation

Download the zip archive, extract the files, and include them in your PHP application with the php require_once method.

require_once('class/ariabillingcomplete.php');

##Usage

The PHP SDK includes classes for each series of web services and a complete class that includes a method for each Core API. To make a service call, instantiate the complete class or the class for the service you want to use with the URL of environment to call and a configuration array. Each API call is made as a method on your class. A successful call will return an array including 'error_code' and 'error_msg' keys with the values of 0 and OK.

require_once('class/ariabillingcomplete.php');

$aria = new AriaBillingComplete('https://secure.ariasystems.net/api/ws/api_ws_class_dispatcher.php',
    Array(
        'client_no' => CLIENT_NO,
        'auth_key' => AUTH_KEY
    )
);

$result = $aria->authenticate_caller();

print_r($result); // Array ( [error_code] => 0, [error_msg] => OK )

##More Information

Check out Aria Developer Central for more examples, details, and support on Aria services and features.