Project

groundcrew

0.0
No commit activity in last 3 years
No release in over 3 years
a simple library for running things on http://Groundcrew.us
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

groundcrew¶ ↑

A ruby wrapper for the Groundcrew API, with thanks to rest-client and yajl.

Usage¶ ↑

# Invite twitter followers that were recently seen in the bronx to a party?

Groundcrew.api(account_id, api_key) do

  exec '43.222,-104.300',
    "\"Please come to a party downtown!\"\n"+
    "tell participants: bring a small dragon and a game to play with it"

end

# Who likes tennis that's currently walking through the bronx?

add_person :name => 'jimmy', :phone => '5552508007', :loc => '01060'

stream_people :near => '43.222,-104.300' do |person|
  next unless person.bio =~ /tennis/
  puts "#{person.name} is in the area and ready"
end

# Gather people in teams of six who want to hold signs

exec 'London, UK', <<-CEML
    "Sign holding in groups"
    takes 20m
    gather 4-6 signholders with tag sign_holding
    tell signholders:
      greet the other signholders
      make signs and hold them
CEML

Copyright © 2010 Citizen Logistics, Inc. See LICENSE for details.