Creating a gist

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

Creating a Gist with all arguments create(params)

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')

Creating a Gist with required argument only create(params)

# create a gist with defaut name(gist:gistID, provided by github)
GHgist.create(content='_CONTENT_GOES_HERE')