Warning
user must be authenticated
Fetch all the GistsNames.
Note
Only recent 30 gists will be shown as per the Github API v3
GHgist.profile().listall()
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)
Fetch Gist’s name by provoding it’s ID i.e. GistID.
GHgist.profile().getgist(id='_GISTID')
Note
Input
- name/id - id should be correct so check response before using it further.
- Required
GHgist.profile('YOURUSERNAME').links(id='_GISTID')
GHgist.profile('YOURUSERNAME').links(name='_GISTNAME')
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')
List all your starred gists starred()
GHgist.profile().starred()
List only the required number of starred Gists starred(limit=2).
Note
GHgist.profile().starred(limit=2)
Fetch any of your Gist’s name by provoding it’s ID i.e. GISTID.
GHgist.profile().getgist(id='_GistID')
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')
Very useful in order to work hasslefree getMyID('_YOUR_GIST_NAME').
GHgist.profile().getMyID('_YOUR_GIST_NAME')
Delete a gist by providing either GistName or GistID delete(id='_GISTID').
Note
GHgist.profile().delete(id='_GISTID')