Created
July 27, 2011 15:03
-
-
Save michaelminter/1109553 to your computer and use it in GitHub Desktop.
Simple RESTful API for getfractal.com
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 Email | |
. | |
. | |
. | |
def get_fractal | |
require 'net/http' | |
require 'uri' | |
api_key = 'yourAPIKey' | |
response = Net::HTTP.post_form(URI.parse('http://getfractal.com/api/v1/validate'), {'api_key'=>"#{api_key}", 'html'=>self.html.html_safe}) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment