Skip to content

Instantly share code, notes, and snippets.

@mwotton
Created April 5, 2011 22:34
Show Gist options
  • Save mwotton/904720 to your computer and use it in GitHub Desktop.
Save mwotton/904720 to your computer and use it in GitHub Desktop.
newRepo2 name = do
req <- parseUrl "https://github.com/api/v2/json/repos/create"
encoded <- urlEncodedBody ["name", name]
res <- withManager $ httpsLbs $ encoded { method = POST }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment