Managing authenticated user’s gists

Warning

user must be authenticated

Listing all the Gists profile().listall()

Fetch all the GistsNames.

Note

Only recent 30 gists will be shown as per the Github API v3

GHgist.profile().listall()

Listing the required number of Gists profile().list(integar)

Fetch only the limited number of Gists list(4).

Note

Input

integar
integar is required as an argument which will limit the number of Gists to be listed.
GHgist.profile().list(4)

Get GistName profile().getgist(id='_GISTID')

Fetch Gist’s name by provoding it’s ID i.e. GistID.

GHgist.profile().getgist(id='_GISTID')

Fetching the contents of a Gist profile().content(params)

Fetch the contents of a Gist by name (GISTNAME) content(name='_GISTNAME').

GHgist.profile().content(name='_GISTNAME')

Fetch by id (GISTID)

GHgist.profile().content(id='_GISTID')

Listing the starred Gists profile().starred()

List all your starred gists starred()

GHgist.profile().starred()

List only the required number of starred Gists starred(limit=2).

Note

limit
Required
GHgist.profile().starred(limit=2)

Get GistName profile().getgist(id='_GISTID')

Fetch any of your Gist’s name by provoding it’s ID i.e. GISTID.

GHgist.profile().getgist(id='_GistID')

Editing a Gist profile().edit(params)

Edit a Gist by providing either GistName or GistID, and content.

Note

Input

description
Optional
name/id
Required
content
Required
# with all the arguments
GHgist.profile().edit(description='_NEW_DESCRIPTION',name='_GISTNAME',content='_UPDATED_CONETNT_GOES_HERE')

# with required arguments
GHgist.profile().edit(id='_GISTID',content='_UPDATED_CONTENT_GOES_HERE')

Getting a GistName using GistID profile().getMyID(params)

Very useful in order to work hasslefree getMyID('_YOUR_GIST_NAME').

GHgist.profile().getMyID('_YOUR_GIST_NAME')

Deleting a Gist profile().delete(params)

Delete a gist by providing either GistName or GistID delete(id='_GISTID').

Note

Input
name/id
Required
GHgist.profile().delete(id='_GISTID')