发送小程序卡片

简要描述:

发送小程序卡片

请求URL:

请求方式:

  • POST

请求头Headers:

  • Authorization: Bearer xxx(PS:xxx是代表login接口返回,Bearer后面有个空格,除了login接口,后续所有接口都携带此参数)
  • Content-Type:application/json

参数:

参数名 必选 类型 说明
sessionId string
wxId string 微信id
title string 标题
id string
userName string
displayName string
iconUrl string
pagePath string
thumbUrl string

返回数据:

参数名 类型 说明
code number 200成功,其他失败
msg string 反馈信息
data object 返回对象
data.count number
data.messageId String
data.newMessageId String

请求参数示例

{
  "sessionId":"***",
  "title":"test",
  "desc":"test",
  "url":"http://wwww.baidu.com",
  "thumbUrl":"https://wework.qpic.cn/wwpic/690986_***20972",
  "wxId":"788***925288"
}

成功返回示例

{
  "msg": "操作成功",
  "code": 200,
  "data": {
    "count": 1,
    "messageId": "1009303",
    "newMessageId": "1009303",
    "extension": null
  }
}

错误返回示例

{
  "msg": "session timeout or authentication token not found or invalid credit info",
  "code": 500
}
Copyright © wkteam.cn 2020 all right reserved,powered by Gitbook该文件修订时间: 2023-12-16 17:29:44

results matching ""

    No results matching ""