Create an instance of Asset class with a given asset id and optional attributes and session credentials.
await new Asset(topia, "assetId", { attributes: { assetName: "My Asset", isPublic: false }, credentials: { apiKey: "exampleKey", interactiveNonce: "exampleNonce", urlSlug: "exampleWorld", visitorId: 1 }});
Optional
Readonly
Retrieves platform asset details.
await asset.fetchAssetById();const { assetName } = asset;
Summary
Create an instance of Asset class with a given asset id and optional attributes and session credentials.
Usage