Skip to content

fetchGist

The fetcher behind the gist pin card.

Fetch GitHub gist information by given username and ID.

fetchGist(options, config: CardConfig): Promise<GistData>
OptionTypeRequiredWhat it is
idstring | undefinedyes

Returns Promise<GistData> — Gist data.

The id is the hash at the end of the gist’s URL. A gist that does not exist, or that the token cannot see, is a not_found — not an empty result.