Function getTargetedWidgetIdAndKind

  • Returns Promise<ITargetedWidgetIdKind>

    Description

    Get targeted widget Id and widget kind from a given widget details Targeted widget Id and kind could be different in the case of follow up widget. This API could be used to get targeted widget id and kind when fetching widget interaction or widget reward transactions

    Since

    0.1.0

    Async

    Example

    getTargetedWidgetIdAndKind({
    widgetId: "xxxx",
    widgetKind: WidgetKind.TEXT_PREDICTION_FOLLOW_UP
    }).then(res => console.log(res))

    OR
    getTargetedWidgetIdAndKind({
    widget: { // widgetPayload }
    }).then(res => console.log(res))

Generated using TypeDoc