Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.98 KB

File metadata and controls

38 lines (29 loc) · 1.98 KB

Webview

When a webview actions is clicked/tapped, the provided URI will be loaded in a webview. Channels that do not support webviews will open the fallback URI instead.

Properties

Name Type Description Notes
type str The type of action.
uri str The webview URI. This is the URI that will open in the webview when clicking the button.
text str The button text.
default bool Boolean value indicating whether the action is the default action for a message item in Facebook Messenger. [optional]
metadata Dict[str, object] Flat object containing custom properties. Strings, numbers and booleans are the only supported format that can be passed to metadata. The metadata is limited to 4KB in size. [optional]
extra_channel_options ExtraChannelOptions [optional]
size str The size to display a webview. Used for actions of type webview. [optional]
fallback str The fallback uri for channels that don’t support webviews. Used for actions of type webview.
open_on_receive bool Boolean value indicating if the webview should open automatically. Only one action per message can be set to true. Currently only supported on the Web Messenger. [optional]

Example

from sunshine_conversations_client.model.webview import Webview

# TODO update the JSON string below
json = "{}"
# create an instance of Webview from a JSON string
webview_instance = Webview.from_json(json)
# print the JSON string representation of the object
print(Webview.to_json())

# convert the object into a dict
webview_dict = webview_instance.to_dict()
# create an instance of Webview from a dict
webview_from_dict = Webview.from_dict(webview_dict)

[Back to Model list] [Back to API list] [Back to README]