转发小程序
简要描述:
转发小程序
请求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 | |
thumbFileId | 是 | string | |
thumbFileMd5 | 是 | string | |
thumbFileLength | 是 | string | |
prefaceImageSize | 是 | string | |
aesKey | 是 | string |
返回数据:
参数名 | 类型 | 说明 |
---|---|---|
code | number | 200成功,其他失败 |
msg | string | 反馈信息 |
data | object | 返回对象 |
data.count | number | |
data.messageId | String | |
data.newMessageId | String |
请求参数示例
{
"sessionId":"***",
"wxId":"788***145",
"title":"一键生成高清电子文档,全球4亿用户都在用",
"id":"wx10c0611db3c5b8d3",
"userName":"gh_f71e27dda6a0@app",
"displayName":"扫描全能王",
"iconUrl":"http://mmbiz.qpic.cn/mmbiz_png/AuRG2YExGWoyq9l8SOgxC0rcibGAPI8nbMkiaFKaJ4ZNmVRQQBKglibhz7E3CNO5y3CBbqGXHpZhK9E0BynJ76E5A/640?wx_fmt=png&wxfrom=200",
"pagePath":"pages/home/home.html",
"thumbFileId":"30680201020461305f020100020482f365c702030f4241020442c06db402046477082e042431393665643334652d353037322d346162372d613133372d336164666435623265336265020100020258600410f253051b284bc26431fbdd2dae10320a0201010201000400",
"thumbFileMd5":"f253051b284bc26431fbdd2dae10320a",
"thumbFileLength":"22619",
"aesKey":"349ad1d765ca4f0ab1a3df41c88f4fed"
}
成功返回示例
{
"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
}