Function publishWidget

  • Parameters

    Returns Promise<IPublishWidgetRes>

    Description

    Publish a widget based on publish delay duration that would schedule a widget to be published after a given duration. When no publish duration is passed, widget would be instantly published.

    Async

    Since

    0.1.0

    Example

    publishWidget({
    widgetId: "<widget question>",
    widgetKind: WidgetKind.TEXT_POLL,
    delayDuration: "P0DT00H05M00S" // publish widget after 5 mins
    }).then(res => console.log(res))

Generated using TypeDoc