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
Copyright © 2010 Citizen Logistics, Inc. See LICENSE for details.