Skip to content

Instantly share code, notes, and snippets.

@delano
Created February 21, 2011 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save delano/837654 to your computer and use it in GitHub Desktop.
Save delano/837654 to your computer and use it in GitHub Desktop.
thbll.com integration in Ruby
class TheBell
include HTTParty
#debug_output $stdout
base_uri 'http://api.thbll.com/ring-the-bell/SITENAME'
def self.ring
post("/PASSPHRASE/", :body => {})
end
end
#
# Usage: replace SITENAME and PASSPHRASE. Then call:
#
# TheBell.ring
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment