Warning
user must be authenticated
Note
Input
- name
- Optional argument (default auto-gistID)
- description
- Optional argument (default empty)
- public
- Optional argument (default public)
- content
- Required argument
Create a new Gist simply by providing the parameters as specified above.
# create a secret gist(public=0)
GHgist.create(name='_GISTNAME', description='_ANY_DESCRIPTION', public=0, content='_CONTENT_GOES_HERE')
# create a gist with defaut name(gist:gistID, provided by github)
GHgist.create(content='_CONTENT_GOES_HERE')