Fix comments.
This commit is contained in:
parent
8e5c3f01b4
commit
536d4efc40
1 changed files with 6 additions and 4 deletions
|
@ -54,7 +54,7 @@ The "message" key should be a human-friendly string.
|
||||||
|
|
||||||
INBOUND ACTIONS
|
INBOUND ACTIONS
|
||||||
===============
|
===============
|
||||||
** All actions must include an "api" field with valie "widget".**
|
** All actions must include an "api" field with value of "widget".**
|
||||||
All actions can return an error response instead of the response outlined below.
|
All actions can return an error response instead of the response outlined below.
|
||||||
|
|
||||||
content_loaded
|
content_loaded
|
||||||
|
@ -66,7 +66,7 @@ Request:
|
||||||
- No additional fields.
|
- No additional fields.
|
||||||
Response:
|
Response:
|
||||||
{
|
{
|
||||||
success: true
|
success: "true"
|
||||||
}
|
}
|
||||||
Example:
|
Example:
|
||||||
{
|
{
|
||||||
|
@ -114,7 +114,7 @@ OUTBOUND ACTIONS
|
||||||
================
|
================
|
||||||
|
|
||||||
In addition to listening for inbound requests, the API can be used to initiate
|
In addition to listening for inbound requests, the API can be used to initiate
|
||||||
actionss in the widget iframe, and request data from the widget instance.
|
actions in the widget iframe, and request data from the widget instance.
|
||||||
|
|
||||||
Outbound actions use the "widget_client" API key / name, which must be included
|
Outbound actions use the "widget_client" API key / name, which must be included
|
||||||
on all requests.
|
on all requests.
|
||||||
|
@ -135,11 +135,13 @@ Request a screenshot from the widget (if supported).
|
||||||
This can only be supported by widgets that have access to all of their DOM tree.
|
This can only be supported by widgets that have access to all of their DOM tree.
|
||||||
For example, widgets that nest further levels of iframes can not support this.
|
For example, widgets that nest further levels of iframes can not support this.
|
||||||
|
|
||||||
|
The screenshot is returned as a Blob object.
|
||||||
|
|
||||||
Request:
|
Request:
|
||||||
- No additional fields.
|
- No additional fields.
|
||||||
Response:
|
Response:
|
||||||
{
|
{
|
||||||
screenshot: {data...}
|
screenshot: {<Blob>data...}
|
||||||
}
|
}
|
||||||
Example:
|
Example:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue