設定webview網址

根據傳入的參數來設定用戶機器人的webview網址

Set customer webview URL

post

Configure the webview URL for customer interactions

Authorizations
Query parameters
botIdstringRequired

The bot ID for the API request

Body
secretstringRequired

Secret key for API authentication

Example: your_secret_key_here
urlstring · uriRequired

The webview URL to set

Example: https://example.com/webview
platformstring · enumRequired

Platform for the webview (line or facebook)

Example: linePossible values:
typestringOptional

webview type include full, tall and compact

Example: full
Responses
200
Webview URL set successfully
application/json
Responseall of
post
POST /api/openapi/set/webview HTTP/1.1
Host: mantago.cc
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 101

{
  "secret": "your_secret_key_here",
  "url": "https://example.com/webview",
  "platform": "line",
  "type": "full"
}
{
  "success": true,
  "message": "Set customer webview successfully",
  "customerWebviewUrl": "https://example.com/webview"
}

Last updated