抖音私信名片技术生成是抖音官方的开放接口平台,部分需要企业私信消息卡片来制作,这里简单给大家解析一下具体的方法和流程。消息卡片是企业号特有的消息类型,每个认证企业号最多可创建20条消息卡片。
创建/更新消息卡片
POST
?/enterprise?/im?/card?/save?/
创建/更新消息卡片
Schemas
question_list
h5
{
"card_id": "string",
"card_type": "question_list",
"content": "{ "text": "有什么疑问呢", "questions": [ {"name":"问题1","text":"关键词1"}, {"name":"问题2","text":"关键词2"} ] }"
}
创建后可调用查看接口 查看卡片是否过审
查看消息卡片状态
GET
?/enterprise?/im?/card?/list?/
获取消息卡片列表
删除消息卡片
{
"data": {
"card_id": "open.234325344",
"error_code": 0,
"description": ""
}
}
POST
?/enterprise?/im?/card?/delete?/
删除消息卡片
使用消息卡片
{
"data": {
"error_code": 0,
"description": "",
"cursor": 0,
"has_more": false,
"cards": [
{
"card_id": "string",
"card_type": "string",
"content": "string",
"status": "avaliable",
"reject_reason": "string"
}
]
}
}
将获得的card_id作为参数调用发送私信接口即可,这里部分私人个人号,可以直接调用如下消息钩子来获取卡片。
#*shareURL*#{
"link_url": "http://w.douyin618.com/?MzgyOQ==",
"push_detail": "[消息卡片]",
"desc": "desc this is",
"title": "title this is",
"cover_url": "logo url this is",
"is_card": 0,
"messageType": 26,
}
原文链接:https://blog.51cto.com/14336895/2508843
本文来自网络,不代表手讯网立场。