README

Path: README
Last Update: Sat Jul 11 15:04:58 -0400 2009

Pairwise API

Library to connect to the Pairwise API version 0.2.0. Defines the Pairwise class containing public methods that may be called in Controllers and Models.

To configure your connection to the pairwise web service pass a hash of options to Pairwise.servers as below.

Examples

Configure pairwise server:

Pairwise.server({

  :host => "pairwise.photocracy.org",
  :user => "user",
  :password => "password",
  :protocol => "https"

})

Create questions ‘What?’ and ‘Comment?’:

ids = Pairwise.question(["What?", "Comment?"])

Copyright (c) 2008-2009 Peter Lubell-Doughtie and the Trustees of Princeton University. For additional license information see text file LICENSE.

[Validate]