- 开发指南
- 基础API
- 登录模块
- 联系人模块
- 群模块
- 消息模块
- 朋友圈模块
- 标签模块
- 个人模块
- 收藏夹模块
- 视频号模块
- 账号管理
- 更多信息
发送图片朋友圈
POST
/gewe/v2/api/sns/sendImgSns
请求参数
Header 参数
X-GEWE-TOKEN
string
必需
示例值:
{{gewe-token}}
Body 参数application/json
appId
string
设备ID
allowWxIds
array[string]
允许谁看
atWxIds
array[string]
提醒谁看
disableWxIds
array[string]
不给谁看
privacy
boolean
是否私密
默认值:
false
content
string
朋友圈文字内容
imgInfos
array [object {6}]
必需
>= 1 items<= 9 items
fileUrl
string
必需
thumbUrl
string
必需
fileMd5
string
必需
length
number
可选
width
number
图片宽度
height
number
图片高度
allowTagIds
array[string]
可选
disableTagIds
array[string]
可选
示例
{
"appId": "{{appid}}",
"allowWxIds": [],
"atWxIds": [],
"disableWxIds": [],
"content": "img",
"imgInfos": [
{
"fileUrl": "http://szmmsns.qpic.cn/mmsns/FzeKA69P5uJr4JZ7M7h6bAeMo2q3AKbyA2aqtKtBTibicSJdhlBuc30AMOCFkCYdnCxleUX35NBBE/0",
"thumbUrl": "http://szmmsns.qpic.cn/mmsns/FzeKA69P5uJr4JZ7M7h6bAeMo2q3AKbyA2aqtKtBTibicSJdhlBuc30AMOCFkCYdnCxleUX35NBBE/150",
"fileMd5": "704de7ebbc107a51a4f0986253a6d3b6",
"length": 1096,
"width": 1920,
"height": 1080
},
{
"fileUrl": "http://szmmsns.qpic.cn/mmsns/FzeKA69P5uJr4JZ7M7h6bAeMo2q3AKby5mg2I3C20yLn95mWHQ0dC4hqWosWyf1zf43Xmut3CCE/0",
"thumbUrl": "http://szmmsns.qpic.cn/mmsns/FzeKA69P5uJr4JZ7M7h6bAeMo2q3AKby5mg2I3C20yLn95mWHQ0dC4hqWosWyf1zf43Xmut3CCE/150",
"fileMd5": "f34ccc016a83c23d11b94f9c4ef533f3",
"length": 1086,
"width": 1920,
"height": 1080
}
],
"privacy": false,
"allowTagIds": [],
"disableTagIds": []
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://api.geweapi.com/gewe/v2/api/sns/sendImgSns' \
--header 'X-GEWE-TOKEN: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"appId": "",
"allowWxIds": [],
"atWxIds": [],
"disableWxIds": [],
"content": "img",
"imgInfos": [
{
"fileUrl": "http://szmmsns.qpic.cn/mmsns/FzeKA69P5uJr4JZ7M7h6bAeMo2q3AKbyA2aqtKtBTibicSJdhlBuc30AMOCFkCYdnCxleUX35NBBE/0",
"thumbUrl": "http://szmmsns.qpic.cn/mmsns/FzeKA69P5uJr4JZ7M7h6bAeMo2q3AKbyA2aqtKtBTibicSJdhlBuc30AMOCFkCYdnCxleUX35NBBE/150",
"fileMd5": "704de7ebbc107a51a4f0986253a6d3b6",
"length": 1096,
"width":1920,
"height":1080
},
{
"fileUrl": "http://szmmsns.qpic.cn/mmsns/FzeKA69P5uJr4JZ7M7h6bAeMo2q3AKby5mg2I3C20yLn95mWHQ0dC4hqWosWyf1zf43Xmut3CCE/0",
"thumbUrl": "http://szmmsns.qpic.cn/mmsns/FzeKA69P5uJr4JZ7M7h6bAeMo2q3AKby5mg2I3C20yLn95mWHQ0dC4hqWosWyf1zf43Xmut3CCE/150",
"fileMd5": "f34ccc016a83c23d11b94f9c4ef533f3",
"length": 1086,
"width":1920,
"height":1080
}
],
"privacy": false,
"allowTagIds": [],
"disableTagIds": []
}'
返回响应
🟢200成功
application/json
Body
ret
integer
必需
msg
string
必需
data
object
必需
id
integer
朋友圈ID
userName
string
必需
nickName
string
朋友圈作者的昵称
createTime
integer
发布时间
示例
{
"ret": 200,
"msg": "操作成功",
"data": {
"id": 14292802719912825000,
"userName": "zhangchuan2288",
"nickName": "朝夕。",
"createTime": 1703834858
}
}
修改于 2025-03-10 09:01:24