Actions on gists

Warning

user must be authenticated

Useful Information for below mentioned methods

Since all the below mentioned methods require GistName/GistID. GistName is provided only when calling methods for your own Gists. Whereas GistID can be provided for all.

GistID of other users’ Gist can be easily extracted without opening browser. Refer to the Search User’s gists section

Check a Gist for a star do().checkifstar(params)

Check any Gist for a star by providing Gistname(if that Gist belongs to you) or GistID.

Note

Input

name/id
provide name only if that gist belongs to you , provide id for checking correspondong Gist

Required

GHgist.do().checkifstar(id='_GISTID')

# provide your Gistname
GHgist.do().checkifstar(name='_YOUR_GISTNAME')

Star a Gist do().star(params)

Star any Gist by providing Gistname(if that Gist belongs to you) or GistID.

Note

Input

name/id
provide name only if that gist belongs to you , provide id for starring corresponding Gist

Required

GHgist.do().star(id='_GISTID')

# provide your Gistname
GHgist.do().star(name='_YOUR_GISTNAME')

Unstar a Gist do().unstar(params)

UnStar any Gist by providing Gistname(if that Gist belongs to you) or GistID.

Note

Input

name/id

provide name only if that gist belongs to you , provide id for unstarring corresponding Gist

Required

GHgist.do().unstar(id='_GISTID')

# provide your Gistname
GHgist.do().unstar(name='_YOUR_GISTNAME')

Fork a Gist do().fork(params)

Fork other’s Gist by providing GistID.

Note

Input

id
provide id for forking corresponding Gist

Required

GHgist.do().fork(id='_GISTID')