Simple Web Services - API

I'm working on a set of simple web services.

These differ from the web services that are currently built into the software in that they are designed to be used by other developers. Whereas the regular web services rely upon classes in the package (so you have to install the entire client version of the software), the simple web services only require the nusoap.php library.

The regular web services were custom-built to work with the client. So you have logic centered around page sets, and sorting which is unnecessarily. The simple webservices maximize developer flexibility.

The following example calls the UpcomingEvents service to fetch a list of upcoming events. You can filter by geography and/or issue. It returns an array of data which you can display in whatever format you want.

PHP Example


require_once('../include-both/nusoap.php');

$client = new soapclient('http://www.campusactivism.org/goad-server2/webservice/simple_upcomingevents.php');
  
$aData = $client->call('GetUpcomingEvents',
	array ('iNumresults'=>'5',
	'sZip' => '',
	'iRadius' => '',
	'sCity' => '',
	'sState' => '',
	'sCountry' => 'Canada',
	'iGeoscope' => '5',
	'iIid' => '',
	'iCompress' => '',
	'sLanguage'=>''));

print_r ($aData);