sign in
Home | Updates | Pages | Users | Admin | Help
Comparing version 4 and version 3 back

The CampusWire API(Application Programming Interface) is a way to access CampusWire programatically. This makes it easy to integrate CampusWire into your own application, or even build an application around CampusWire. The API follows "REST":http://en.wikipedia.org/wiki/REST principles.

All API calls are authenticated using HTTP BasicAuth. Be sure to set your Content-Type and Accept HTTP headersheader to application/xmltext/xml 

There are four HTTP methods that are used when you make a call to our API. They are:

* GET -- Get information about a resource
* POST -- Create a new resource
* PUT -- Modify/update a resource
* DELETE -- Delete a resource

CampusWire has two mainfour resources that you can create/edit/update/destroy.

* [[API Documentation Message|Messages]]
* [[API Documentation Users|Users]]
* [[API Documentation Users|Groups]]
* [[API Documentation Users|Memberships]]

The request URI should end in .xml when making calls to the API. For instance, to retrieve a list of users the request would get GET http://www.thecampuswire.com/organizations/john_doe/users.xml

If you are working with an individual resource, an example request would be GET http://www.thecampuswire.com/organizations/john_doe/users/1.xmlhttp://www.thecampuswire.com/users/1.xml
Powered by JunebugWiki v0.0.37