provider gists GET /gists/{gist_id}/{sha}
@utdk/github /gists/{gist_id}/{sha}
Get a gist revision
Gets a specified gist revision. This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
gist_id path required
The unique identifier of the gist.
string
sha path required
string

Try it

Authentication
Configure credentials for GitHub v3 REST API
gists.getRevision
GET/gists/{gist_id}/{sha}
Gets a specified gist revision. This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.

Parameters

required

The unique identifier of the gist.

required

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.gists.getRevision()