Skip to content

Instantly share code, notes, and snippets.

Created November 4, 2012 16:30
Show Gist options
  • Save anonymous/79cdeb623539e1eb0257 to your computer and use it in GitHub Desktop.
Save anonymous/79cdeb623539e1eb0257 to your computer and use it in GitHub Desktop.
require 'net/https'
.
.
.
uri = URI.parse('https://api.github.com/gists')
req = Net::HTTP::Post.new(uri.path)
req.use_ssl = true
req.form_data(json_query)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment