Skip to content

PHP Client Examples

zuk edited this page Jan 14, 2011 · 7 revisions

Introduction and Requirements

This guide uses the Pest library to talk to Rollcall. Pest is a PHP client for RESTful resources.

Installing the Pest

Pest is available from Github at http://github.com/educoder/pest.

To install it on your machine:

git clone git://github.com/educoder/pest.git

Then make sure it's in your PHP include_path.

Setup

We'll be using PestXML rather than just plain Pest, since Rollcall can return XML-encoded data.

<?php

require 'PestXML.php';
  
$rollcall_site_url = "http://localhost:3000";
$rest = new PestXML($rollcall_site_url);
 
?>

Usage Examples

See:

Clone this wiki locally