Skip to content

Instantly share code, notes, and snippets.

@zpatten
Forked from davidhund/cUrl to Gist
Created April 18, 2013 23:27
Show Gist options
  • Save zpatten/5416997 to your computer and use it in GitHub Desktop.
Save zpatten/5416997 to your computer and use it in GitHub Desktop.
# Create a Gist (of 2 files) through the GitHub API
# ..uses cUrl but could of course also be done through PHP etc.
curl -H "Content-Type: application/json" -d '{"description": "Your XPATHr Gist test","public": true,"files": {"test.xml": {"content": "Paste your XML code.."},"test.xsl": {"content": "Paste your XSL code here.."}}}' 'https://api.github.com/gists'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment