Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kd_clients/mod.ts>ReleaseClient#getAsset

Various HTTP clients for miscellaneous use.
Latest
method ReleaseClient.prototype.getAsset
import { ReleaseClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.14/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.