Created
February 21, 2011 20:22
-
-
Save delano/837654 to your computer and use it in GitHub Desktop.
thbll.com integration in Ruby
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
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