Skip to content

Instantly share code, notes, and snippets.

@elikem
Forked from runemadsen/httparty.rb
Created March 11, 2014 06:31
Show Gist options
  • Select an option

  • Save elikem/9480603 to your computer and use it in GitHub Desktop.

Select an option

Save elikem/9480603 to your computer and use it in GitHub Desktop.
HTTParty
class Github
include HTTParty
base_uri 'https://api.github.com'
end
Github.post("/user/repos", :query => {
:access_token => @token
},
:body => {
:name => name,
:description => "Reop description",
:homepage => "http://mysite.com",
:public => true,
:has_issues => false,
:has_wiki => false,
:has_downloads => false
}.to_json)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment