Skip to content

Instantly share code, notes, and snippets.

@michaelminter
Created July 27, 2011 15:03
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 michaelminter/1109553 to your computer and use it in GitHub Desktop.
Save michaelminter/1109553 to your computer and use it in GitHub Desktop.
Simple RESTful API for getfractal.com
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