Our open source PHP client provides a simple way to invoke the API from PHP. To download the PHP client, right-click /clients/lms_api.php and then save the contents to your local computer.
The following example lists all the courses in your site:
$API = new Api( array( 'host' => 'yoursite.edu20.com',
'api_key' => 'xxxxx-xxxx-xxxxxxxxxxxxx',
'api_version' => '1',
'use_ssl' => true, ));
//method calling example, with print_r for debug
$all_classes = $API->get_all_classes();
print_r($all_classes);
get_all_classes
12461 => Introduction to Marketing, Self paced
12883 => Sales pitches, Self paced
13232 => Advanced Marketing, Instructor
14365 => Defensive Driving, Instructor