Facebook Messenger 应用程序的表单设计器?
Form designer for Facebook Messenger apps?
我是一名资深程序员,但我是 Facebook Messenger 的新手 API。我已经看到 API 确实支持按钮,根据来自 Facebook 开发者网站的代码片段,该网站使用 CURL 示例来演示格式化代码:
https://developers.facebook.com/docs/messenger-platform/send-api-reference/button-template
curl -X POST -H "Content-Type: application/json" -d '{
"recipient":{
"id":"USER_ID"
},
"message":{
"attachment":{
"type":"template",
"payload":{
"template_type":"button",
"text":"What do you want to do next?",
"buttons":[
{
"type":"web_url",
"url":"https://petersapparel.parseapp.com",
"title":"Show Website"
},
{
"type":"postback",
"title":"Start Chatting",
"payload":"USER_DEFINED_PAYLOAD"
}
]
}
}
}
}' "https://graph.facebook.com/v2.6/me/messages?access_token=PAGE_ACCESS_TOKEN"
对我来说,这看起来很典型 JSON。有没有可以设计这些布局元素的 GUI 工具,不仅针对按钮,还针对可能也存在于 API 中的任何其他 Facebook Messenger 表单模板元素?使用拖放或其他 GUI 界面然后生成必要的 JSON 代码或片段来表示设计表单的东西?
如果有,请留下它的名字或一个link。
我是一名资深程序员,但我是 Facebook Messenger 的新手 API。我已经看到 API 确实支持按钮,根据来自 Facebook 开发者网站的代码片段,该网站使用 CURL 示例来演示格式化代码:
https://developers.facebook.com/docs/messenger-platform/send-api-reference/button-template
curl -X POST -H "Content-Type: application/json" -d '{
"recipient":{
"id":"USER_ID"
},
"message":{
"attachment":{
"type":"template",
"payload":{
"template_type":"button",
"text":"What do you want to do next?",
"buttons":[
{
"type":"web_url",
"url":"https://petersapparel.parseapp.com",
"title":"Show Website"
},
{
"type":"postback",
"title":"Start Chatting",
"payload":"USER_DEFINED_PAYLOAD"
}
]
}
}
}
}' "https://graph.facebook.com/v2.6/me/messages?access_token=PAGE_ACCESS_TOKEN"
对我来说,这看起来很典型 JSON。有没有可以设计这些布局元素的 GUI 工具,不仅针对按钮,还针对可能也存在于 API 中的任何其他 Facebook Messenger 表单模板元素?使用拖放或其他 GUI 界面然后生成必要的 JSON 代码或片段来表示设计表单的东西?
如果有,请留下它的名字或一个link。