پرش به مطلب اصلی

postCustomizedButton

action objectrequired

Represents an action that can be performed

get_dynamic_action object

Represents a dynamic action that can be fetched and invoked on user's device

dataobject

A data that you can set and will be returned to you upon user click to recognize the action

Example: {"your-internal-id":"something"}
open_direct_linkstring

An action to send user to your URL directly with just a resource id (if applicable)

Example: https://your-site.com/some-path
open_post_manage_page object

An action to open a post management page in the app

post_tokenstringrequired

Token of the post to redirect to its management page

Example: AJIEWcw
open_post_page object

An action to open a post page in the app

post_tokenstringrequired

Token of the post to open

Example: AJIEWcw
open_server_link object

An action to pass complete session data and retrieve redirect location from your server on each user action

dataobject

A data that you can set and will be returned to you upon user click to recognize the action

Example: {"your-internal-id":"something"}
typepostCustomizedButtonType (string)required

نوع دکمه اختصاصی که هدف و رفتار آن را مشخص می‌کند. ویژگی‌هایی مانند عنوان دکمه از نوع آن به دست می‌آیند.

انواع موجود:

  • UNKNOWN: نوع دکمه ناشناخته (نباید استفاده شود)
  • ACCOMMODATION_BOOKING: برای رزرو اقامتگاه

Possible values: [ACCOMMODATION_BOOKING]

postCustomizedButton
{
"action": {
"get_dynamic_action": {
"data": {
"your-internal-id": "something"
}
},
"open_direct_link": "https://your-site.com/some-path",
"open_post_manage_page": {
"post_token": "AJIEWcw"
},
"open_post_page": {
"post_token": "AJIEWcw"
},
"open_server_link": {
"data": {
"your-internal-id": "something"
}
}
},
"type": "ACCOMMODATION_BOOKING"
}