user()

Get assets owned by the specified user

Parameters

export type AssetUserProps = GetUserAssetsBaseProps & {
    idOnly?: boolean; // if true, response includes assetIds only
    countsOnly?: boolean; // if true, response includes collectionIds with counts only
}

Examples

const assets = await assetlayer.assets.user();
const assets = await assetlayer.assets.user({
    idOnly: true
});

Return Types

type ReturnType = Asset[] | AssetCounts | string[];
pageAsset

Alternatives

pagegetUserAssets()pagegetUserAssetIds()pagegetUserAssetCounts()

Last updated