List Gists For The Authenticated User
Lists the authenticated user's gists or if called anonymously, this endpoint
returns all public gists:
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_GISTS_FOR_THE_AUTHENTICATED_USER])
Create A Gist
Allows you to add a new gist with one or more files. **Note:** Don't name
your files "gistfile" with a numerical suffix. This is the format of the
automatic naming scheme that Gist uses intern
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_CREATE_A_GIST])
Gist S Create
Allows you to add a new gist with one or more files. **Note:** Don't name
your files "gistfile" with a numerical suffix. This is the format of the
automatic naming scheme that Gist uses intern
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GIST_S_CREATE])
List Public Gists
Public gists can be listed from most to least recently updated, with pagination
allowing up to 3000 gists retrieval, e.g., 100 pages of 30 gists or 30 pages
of 100 gists.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_PUBLIC_GISTS])
Gist S List Public
Public gists can be listed from most to least recently updated, with pagination
allowing up to 3000 gists retrieval, e.g., 100 pages of 30 gists or 30 pages
of 100 gists.<<DEPRECATED use list_
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GIST_S_LIST_PUBLIC])
List Starred Gists
List the authenticated user's starred gists:
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_STARRED_GISTS])
Get A Gist
This endpoint fetches a gist with options for raw markdown (default) or
base64-encoded content, supporting custom media types detailed at GitHub
docs.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_GIST])
Update A Gist
Edit a gist by updating its description or files, where unchanged files
remain as is. Editing requires at least a description or file change. Supports
media types for raw or base64-encoded con
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_UPDATE_A_GIST])
Delete A Gist
This endpoint deletes a gist using its ID. It returns a 204 on success and
error statuses like 404, 304, or 403 for issues. More info at GitHub docs.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_DELETE_A_GIST])
List Gist Commits
This endpoint fetches a list of gist commits using `gist_id`, offering pagination
via `per_page` & `page`. It provides details like commit URL, version, user
info, and date. Check the document
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_GIST_COMMITS])
List Gist Forks
This endpoint lists all forks of a specified gist (`gist_id`), supporting
pagination via `per_page` and `page`. It returns gist forks with user info
and metadata. For more, see GitHub's Docume
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_LIST_GIST_FORKS])
Fork A Gist
Forks a GitHub gist using its ID, returns forked gist details in JSON with
a 201 status for success. Requires `gist_id`. See documentation for more.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_FORK_A_GIST])
Check If A Gist Is Starred
This endpoint determines if a gist is starred by ID, returning 204 if yes,
404 if not found, 304 if unchanged, and 403 if access is denied. More information
is available in the GitHub docs.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_CHECK_IF_A_GIST_IS_STARRED])
Star A Gist
Note that you'll need to set `Content-Length` to zero when calling out to
this endpoint. For more information, see "[HTTP method](https://docs.github.com/rest/guides/getting-started-with-the-rest-
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_STAR_A_GIST])
Unstar A Gist
Endpoint supports un-starring a gist via DELETE method, providing responses
for success (204), not modified (304), not found (404), and forbidden (403).
More details at GitHub docs.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_UNSTAR_A_GIST])
Get A Gist Revision
This endpoint fetches a specific gist revision, supporting custom media
types for raw markdown or base64-encoded content. For details, see GitHub's
media types documentation.
from composio_langchain import ComposioToolSet, Action
tool_set = ComposioToolSet()
tools = tool_set.get_tools(actions=[Action.GITHUB_GET_A_GIST_REVISION])