Fetch all the GistsNames of a Github User.
Note
Only recent 30 gists will be shown as per the Github API v3
GHgist.search('_USERNAME').listall()
Fetch only the limited number of Gists.
Note
Input
- integar
- integar is required as an argument which will limit the number of Gists to be listed.
GHgist.search('_USERNAME').list(2)
Fetch the contents of a Gist by name (GistName).
GHgist.search('_USERNAME').content(name='_GISTNAME')
Fetch by id (GistID)
GHgist.search('').content(id='_GISTID')
Fetch Gist’s name by provoding it’s ID i.e. GistID.
GHgist.search('').getgist(id='_GISTID')
It is very very useful and solves the dual purpose. Providing the username and a Gistname of that user not only provides the above mentioned Links but also let ‘one’ know about the GistID of that Gist.
Moreover, this criteria can also be applied in finding ‘one’s‘ own Gist’s GistID by providing Gistname.
Note
Input
- name/id -
if providing GistdID, Github-Username should be blank like search(‘’),links(id=’_GISTID’) if providing GistName, Github-Username is required like search(‘Github-User’).links(name=’THATUSERSGISTNAME’)Required
GHgist.search('').links(id='_GISTID')
GHgist.search('_USERNAME').links(name='_GISTNAME')