slots()

Get the slots and slot details for a given app

Parameters

export type AppSlotsProps = { 
    appId: string; 
    idOnly?: boolean; // if true, response includes slotIds only
};

Examples

const slots = await assetlayer.apps.slots({
    appId: 'appId'
});
const slotIds = await assetlayer.apps.slots({
    appId: 'appId',
    idOnly: true
});

Return Types

type ReturnType = SlotWithExpressions[] | string[];
Slot

Alternatives

getAppSlots()getAppSlotIds()

Last updated