GET http://urlspoiler.herokuapp.com/gists?id=required&file=optional&format=optional
id=<the ID of the gist>
- Extract the ID from a gist url:
https://gist.github.com/<id>
file=<the filename with extension>
- By default, all of the files in the gist will be rendered.
- If you only want to render one file, then specify the
file=<filename>
parameter. - Extract the filename from a gist url:
https://gist.github.com/<id>#file_<filename>
format=iframe (default)
- The gist is rendered within a full html document. Use it as the src of an iframe.
format=html
- Get the gist as an html snippet, then inject it anywhere you want.