Skip to content
farrelley edited this page Sep 14, 2010 · 12 revisions

Joind.In API Zend Service

How to use the Service

You should first become familier with the Joind.In service. You can read more about it at http://joind.in/api

Instantiate

With no username or password
$joindIn = new FarleyHills_Service_JoindIn();

With username and password
$joindIn = new FarleyHills_Service_JoindIn($username, $password);

$joindIn = new FarleyHills_Service_JoindIn();
$joindIn->setUsername('username')->setPassword('password');

Call Endpoint

There are 5 endpoints in the joind.in api

  • Comment
  • Event
  • Site
  • Talk
  • User

You can then call and endpoint like

$joindIn->event or $joindIn->user

Calling Endpoint Methods

Each endpoint as it’s own methods. Please check the code to check out these endpoints.
You can call them like

$eventDetails = $joindIn->event->getDetail($eventId);

Response Formats

The Service can return 3 different types of response formats.

  • Array
  • JSON – Default
  • XML

You can set the response format like

$joindIn->setResponseFormat('xml');