Skip to content

Instantly share code, notes, and snippets.

@alexyoung
Created January 28, 2009 12:44
Show Gist options
  • Save alexyoung/53931 to your computer and use it in GitHub Desktop.
Save alexyoung/53931 to your computer and use it in GitHub Desktop.
hp = Helipad.new("[email protected]", "password")
source = File.read("cake_recipe.txt")
response = hp.create(:title => "Cake",
:tags => "recipe",
:source => source)
puts "Recipe saved" if response.saved?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment