Retrieves the data object for a dropped asset.
Optional
appPublicKey: stringOptional
appJWT: stringOptional
sharedAppPublicKey: stringOptional
sharedAppJWT: stringReturns the data object or an error response.
Increments a specific value in the data object for a dropped asset by the amount specified. Must have valid interactive credentials from a visitor in the world.
Sets the data object for a dropped asset and assigns the response data to the instance.
Updates the data object for a dropped asset and assigns the response data to the instance.
Optional
dataOptional
Readonly
idOptional
interactiveOptional
isOptional
jwtOptional
textAdd a webhook to a dropped asset
Returns the new webhookId
or an error.
Deletes the dropped asset (removes it from the world).
Retrieves platform asset details and assigns response data to the instance.
Returns the asset details or an error response.
Retrieve analytics for a dropped asset by day, week, month, quarter, or year
Returns the analytics data or an error.
Retrieves dropped asset details and assigns response data to the instance.
Flip an dropped asset.
Returns the updated dropped asset or an error.
Removes a clickable link from a dropped asset.
Returns the updated dropped asset or an error.
Adds an array of links to an asset. Maximum is 20 links.
Returns the updated dropped asset or an error.
await droppedAsset.setClickableLinkMulti({
clickableLinks: [
{
clickableLink: "https://example_one.com",
clickableLinkTitle: "Example One Link",
isForceLinkInIframe: true,
isOpenLinkInDrawer: false,
},
{
clickableLink: "https://example two.com",
clickableLinkTitle: "Example Two Link",
isForceLinkInIframe: false,
isOpenLinkInDrawer: false,
},
],
});
Set the interactive settings on a dropped asset
Updates platform asset details.
Updates broadcast options for a dropped asset.
Returns the updated dropped asset or an error.
Updates multiple clickable links for a dropped asset.
Returns the updated dropped asset or an error.
Updates click options for a dropped asset.
Returns the updated dropped asset or an error.
Updates text and style of a dropped asset.
Returns the updated dropped asset or an error.
Updates dropped asset details and assigns the response data to the instance. Requires Public Key to have the canUpdateDroppedAssets
permission.
const payload = {
assetScale: 1,
clickType: "link",
clickableDisplayTextDescription: "Description",
clickableDisplayTextHeadline: "Headline",
clickableLink: "https://topia.io",
clickableLinkTitle: "Topia",
flipped: false,
isTextTopLayer: false,
layer0: "https://www.shutterstock.com/image-vector/colorful-illustration-test-word-260nw-1438324490.jpg",
layer1: "https://www.shutterstock.com/image-vector/colorful-illustration-test-word-260nw-1438324490.jpg",
position: { x: 0, y: 0 },
specialType: "webImage",
text: "My Asset",
textColor: "#000000",
textSize: 20,
textWeight: "normal",
textWidth: 200,
uniqueName: "example",
yOrderAdjust: 0,
}
await droppedAsset.updateDroppedAsset();
const { assetName } = droppedAsset;
Updates landmark zone options for a dropped asset.
Returns the updated dropped asset or an error.
Updates media options for a dropped asset.
Returns the updated dropped asset or an error.
Updates mute zone options for a dropped asset.
Returns the updated dropped asset or an error.
Moves a dropped asset to specified coordinates.
Optional
yOrderAdjust: numberReturns the updated dropped asset or an error.
Updates private zone options for a dropped asset.
Returns the updated dropped asset or an error.
Updates the size of a dropped asset.
Returns the updated dropped asset or an error.
Change or remove media embedded in a dropped asset.
Returns the updated dropped asset or an error.
Updates webhook zone options for a dropped asset.
Returns the updated dropped asset or an error.
Change or remove top and bottom layers of a dropped asset.
Returns the updated dropped asset or an error.
Create an instance of Dropped Asset class with a given dropped asset id, url slug, and optional attributes and session credentials.
Example