The example on the README for creating a gist has an error.
It should have files["file1.txt"].content not contents, as per the Create a gist section of the API.
files["file1.txt"].content
contents
Activity