Function getWidgetsInteractions

  • Get collection of widget interactions based on interaction url or an array of widget id or an array of widget kinds

    Parameters

    Returns Promise<IWidgetKindInteractionsMap>

    Since

    0.1.0

    Async

    Example

    getWidgetsInteractions({
    interactionUrl: "<url>"
    }).then(interactions => console.log(interactions))

    // OR
    getWidgetsInteractions({
    programId: "<program-id>",
    widgets: [{
    kind: WidgetKind.TEXT_POLL,
    id: "<widget-id>"
    }]
    }).then(interactions => console.log(interactions))

    // OR
    getWidgetsInteractions({
    programId: "<program-id>",
    widgetKinds: [ WidgetKind.TEXT_POLL, WidgetKind.TEXT_PREDICTION ]
    }).then(interactions => console.log(interactions))

Generated using TypeDoc