简要描述:
- 话术库侧边栏-获取素材内容
请求域名:
- http://xx.com
请求URL:
plugin.speechcraft-library.frontend.controller.member.Material.getMaterialContent
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
material_id | 是 | int | 素材id |
external_userid | 是 | string | 客户userid |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": [
{
"id": 1,
"content": {
"type": "text",
"news": "测试文本测试文本测试文本测试文本测试文本测试文本测试文本测试文本测试文本测试文本<span contenteditable=\"false\" style=\"color: rgb(41, 186, 156); margin: 0px 5px;\">客户昵称</span>"
}
},
{
"id": 2,
"content": {
"type": "text",
"news": "测试文本测试文本测试文本测试文本测试文本测试文本测试文本测试文本测试文本测试文本<span contenteditable=\"false\" style=\"color: rgb(41, 186, 156); margin: 0px 5px;\">客户昵称</span>"
}
},
]
}
返回参数说明如下:
[
{
'type' : 'text'
'news' : '文本消息'
}
{
'type' : 'image'
'link_img':'图片地址'
"media_id": "3d8zKT-88gUaeJZctV26wYSp87Uq81FBgf394rH2-nyZR5Gp19jbR4tzwC8bFHo8Z"
}
{
'type' : 'link'
'title' : '链接标题',
'link' : '链接地址',
'describe' : '链接描述',
'link_img' : '链接封面'
}
{
'type' : 'applet'
'title' : '小程序标题',
'appid' : '小程序appid',
'page' : '小程序page路径',
'link_img' : '小程序封面',
"media_id": "3d8zKT-88gUaeJZctV26wYSp87Uq81FBgf394rH2-nyZR5Gp19jbR4tzwC8bFHo8Z"
}
{
'type' : 'video'
'link_video' : '视频地址'
"media_id": "3d8zKT-88gUaeJZctV26wYSp87Uq81FBgf394rH2-nyZR5Gp19jbR4tzwC8bFHo8Z"
}
{
'type' : 'file'
'link_file' : '文件地址'
"media_id": "3d8zKT-88gUaeJZctV26wYSp87Uq81FBgf394rH2-nyZR5Gp19jbR4tzwC8bFHo8Z"
}
]
错误时返回:
{
"result": 0,
"msg": "您没有权限查看次分组的素材!",
"data": []
}