Created
July 20, 2010 16:02
-
-
Save hayesdavis/483163 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup grackle to talk to flamingo | |
client = Grackle::Client.new | |
client.api_hosts[:flamingo] = "http://localhost:4711" | |
client.api = :flamingo | |
# Commence talking | |
# See what's being filtered | |
client.streams.filter? | |
# Track something new on the filter resource (resarts wader) | |
client.streams.filter.track! :values=>'cat,dog,hat' | |
# Overwrite every param on a stream | |
client.put { streams.filter! :track=>"a,b,c", :follow=>"1,2,3" } | |
# Stop tracking the term "a" | |
client.delete { streams.filter.track! :values=>'a' } | |
# Add a new subscription | |
client.subscriptions! :name=>'app2' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment