div-action-submit
Sends variables from the container via a url. The data sending configuration can be determined by the host application. By default, variables are passed in body in json format, the request method is POST.
Parameters
Parameters | Description |
---|---|
container_id |
string Required parameter. The identifier of the container that contains variables to submit. Available platforms: iOS. |
request |
object Required parameter. The HTTP request parameters that are used to configure how data is sent. The value has the type Available platforms: iOS. |
type |
string Required parameter. The value must always be Available platforms: iOS. |
on_fail_actions |
array Actions in case of unsuccessful submit. Available platforms: iOS. |
on_success_actions |
array Actions in case of successful submit. Available platforms: iOS. |
request
Parameters | Description |
---|---|
url |
string Required parameter. The url to which data from the container is sent. The value must be a valid URL. |
headers |
array The HTTP request headers. |
method |
string The HTTP request method. Possible values: Default value: |
header
Parameters | Description |
---|---|
name |
string Required parameter. |
value |
string Required parameter. |
JSON
{
type*: "submit",
container_id*: "string",
on_fail_actions: [
{
download_callbacks: {
on_fail_actions: [ div-action, ... ],
on_success_actions: [ div-action, ... ]
},
is_enabled: "bool_int",
log_id*: "string",
log_url: "string",
menu_items: [
{
action: div-action,
actions: [ div-action, ... ],
text*: "string"
},
...
],
payload: "object",
referer: "string",
scope_id: "string",
target: "string",
typed: div-action-typed,
url: "string"
},
...
],
on_success_actions: [
{
download_callbacks: {
on_fail_actions: [ div-action, ... ],
on_success_actions: [ div-action, ... ]
},
is_enabled: "bool_int",
log_id*: "string",
log_url: "string",
menu_items: [
{
action: div-action,
actions: [ div-action, ... ],
text*: "string"
},
...
],
payload: "object",
referer: "string",
scope_id: "string",
target: "string",
typed: div-action-typed,
url: "string"
},
...
],
request*: {
headers: [
{
name*: "string",
value*: "string"
},
...
],
method: "string",
url*: "string"
}
}