Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/kd_clients/GitHubClients/mod.ts>ReleaseClient#getAsset

Various HTTP clients for miscellaneous use.
Go to Latest
method ReleaseClient.prototype.getAsset
import { ReleaseClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.12/GitHubClients/mod.ts";

Gets a single asset with an id or name that matches the given assetIdOrName, for a release with an id or tag that matches the given releaseIdOrTag.

Parameters

releaseIdOrTag: number | string

The release id or tag name.

assetIdOrName: number | string

The asset id or name.

Returns

Promise<AssetModel>

The asset with the given assetIdOrName.