設定webview網址
根據傳入的參數來設定用戶機器人的webview網址
Configure the webview URL for customer interactions
Authorizations
Query parameters
botIdstringRequired
The bot ID for the API request
Body
secretstringRequiredExample:
Secret key for API authentication
your_secret_key_here
urlstring · uriRequiredExample:
The webview URL to set
https://example.com/webview
platformstring · enumRequiredExample:
Platform for the webview (line or facebook)
line
Possible values: typestringOptionalExample:
webview type include full, tall and compact
full
Responses
200
Webview URL set successfully
application/json
Responseall of
401
JWT token is invalid or expired
application/json
403
Permission denied - insufficient access rights
application/json
404
OpenAPI configuration not found
application/json
429
Rate limit exceeded
application/json
500
Internal server error
application/json
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