SimplEx - WebEx PHP Class

A layer of abstraction that makes developing WebEx applications a snap!

Introduction

SimplEx is a php class (wrapper) for web developers that provides an additional layer of abstraction on top of the very powerful, well-documented WebEx API. Using this wrapper should cut development time by more than half.

Installation

  1. The first step is to download the library.
  2. Unzip the webex directory onto your server somewhere.
  3. Include the library into your script(s):

    include_once('/path/to/webex/webex.php);

  4. That's it for installation. On to usage...

Usage

The 3-Line Setup

To get this wrapper working, you simply need to include it on the page, tell it what your login credentials are, and then make the api call(s). Pretty simple.


			include_once('/path/to/webex/webex.php);
			
			$webex = new WebEx('webExID', 'password', 'siteID', 'partnerID', 'siteURL');
			
			$results = $webex->method();
			
			

Parsing Results

Results are returned in xml so I usually turn them into SimpleXML objects for easier manipulation.

Here's an example of a complete call with parsing:

				include('simplEx/webex.php');
				$webex = new WebEx('quickbase', 'HIDDEN', '12345', '123abc', $siteURL);
				$results = new SimpleXMLElement($webex->event_LstsummaryProgram('13097'));

				foreach($results->xpath('//event:program') as $result) {
 					var_export($result->xpath('/event:programID'));
					var_export($result->xpath('/event:programName'));
					var_export($result->xpath('/event:programURL'));
				}				
			

Available Methods

Slowly, I'll add more and more of the support api methods that the WebEx XML api supports. But for now, what I've got is enough for you to list events and programs as well as attendees:

Want to Help?

The best thing to do would be shoot me an e-mail or twitter: joshuamc. This would probably make for a good opensource project.

Support

I'm a pretty busy person, but you are welcome to shoot me an e-mail or twitter: joshuamc.