GreenGoose

Build Status

Ruby wrapper for the GreenGoose API.

Requirements

  • MRI 1.9 (or JRuby/rubinius in 1.9 mode)

Quick Start

If using Bundler (recommended), add to Gemfile:

gem 'greengoose'

Create a client object and authenticate with a username and password (signup).

client = GreenGoose::Client.new
client.authenticate "username", "password"

Actions:

client.actions.where(sensor_id: "00000130")
client.actions.where(sensor_id: "00000130", since_id: "2007240")
client.actions.where(sensor_id: "00000130", since_id: "2007240", limit: 5)

client.actions.where(basestation_id: "0050c2af10ff0000")

# http://apiwiki.greengoose.com/index.php/Sensor_Types
client.actions.where(basestation_id: "0050c2af10ff0000", sensor_type: :bike_snsr)