- 开发指南
- 基础API
- 登录模块
- 联系人模块
- 群模块
- 消息模块
- 朋友圈模块
- 标签模块
- 个人模块
- 收藏夹模块
- 视频号模块
- 账号管理
- 更多信息
转发朋友圈
POST
/gewe/v2/api/sns/forwardSns
请求参数
Header 参数
X-GEWE-TOKEN
string
必需
示例值:
{{gewe-token}}
Body 参数application/json
appId
string | null
设备ID
allowWxIds
array[string]
允许谁看
atWxIds
array[string]
提醒谁看
disableWxIds
array[string]
不给谁看
privacy
boolean | null
是否私密
默认值:
false
snsXml
string
朋友圈xml
示例
{
"appId": "{{appid}}",
"allowWxIds": [],
"atWxIds": [],
"disableWxIds": [],
"snsXml": "<TimelineObject><id><![CDATA[14287710809635828232]]></id><username><![CDATA[wxid_g66c3f6y1eg922]]></username><createTime><![CDATA[1703227855]]></createTime><contentDescShowType>0</contentDescShowType><contentDescScene>0</contentDescScene><private><![CDATA[0]]></private><contentDesc></contentDesc><contentattr><![CDATA[0]]></contentattr><sourceUserName><![CDATA[]]></sourceUserName><sourceNickName><![CDATA[狮子领域 程序圈]]></sourceNickName><statisticsData></statisticsData><weappInfo><appUserName></appUserName><pagePath></pagePath><version><![CDATA[0]]></version><isHidden>0</isHidden><debugMode><![CDATA[0]]></debugMode><shareActionId></shareActionId><isGame><![CDATA[0]]></isGame><messageExtraData></messageExtraData><subType><![CDATA[0]]></subType><preloadResources></preloadResources></weappInfo><canvasInfoXml></canvasInfoXml><ContentObject><contentStyle><![CDATA[3]]></contentStyle><contentSubStyle><![CDATA[0]]></contentSubStyle><title><![CDATA[RuoYi-Vue-Plus 发布 5.1.2 版本 2023 最后一版]]></title><description><![CDATA[ ]]></description><contentUrl><![CDATA[http://mp.weixin.qq.com/s?__biz=Mzg4MDYyMzQ5OQ==&mid=2247488653&idx=1&sn=4adf3b791d46d25a117368acea19bd30&chksm=cf733e69f804b77f1fc08a994c41fb76ea933200b7cd484fa8b4fee8b810b1dd78a340c4cb83&mpshare=1&scene=2&srcid=1222KNQu96XLoOwcMuphqc5q&sharer_shareinfo=9689a1855d235961b3bc8f49f788da34&sharer_shareinfo_first=9689a1855d235961b3bc8f49f788da34#rd]]></contentUrl><mediaList><media><id><![CDATA[14287710810308162053]]></id><type><![CDATA[2]]></type><title></title><description></description><private><![CDATA[0]]></private><url type=\"1\"><![CDATA[http://shmmsns.qpic.cn/mmsns/C5Hh7IZThT42LQAraZkUG3bIHHicRLQeuzibCs1FqoIw0KSaQus3BleoNwvSSRcKnd200SBRM0cks/0]]></url><thumb type=\"1\"><![CDATA[http://shmmsns.qpic.cn/mmsns/C5Hh7IZThT42LQAraZkUG3bIHHicRLQeuzibCs1FqoIw0KSaQus3BleoNwvSSRcKnd200SBRM0cks/150]]></thumb><videoDuration><![CDATA[0.0]]></videoDuration><size totalSize=\"3636.0\" width=\"150.0\" height=\"150.0\"></size></media></mediaList><mmreadershare><itemshowtype>0</itemshowtype><ispaysubscribe>0</ispaysubscribe></mmreadershare></ContentObject><actionInfo><appMsg><mediaTagName></mediaTagName><messageExt></messageExt><messageAction></messageAction></appMsg></actionInfo><statExtStr></statExtStr><appInfo><id></id></appInfo><location poiClassifyId=\"\" poiName=\"\" poiAddress=\"\" poiClassifyType=\"0\" city=\"\"></location><publicUserName>gh_23471f7470c1</publicUserName><streamvideo><streamvideourl></streamvideourl><streamvideothumburl></streamvideothumburl><streamvideoweburl></streamvideoweburl></streamvideo></TimelineObject>",
"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/forwardSns' \
--header 'X-GEWE-TOKEN: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"appId": "",
"allowWxIds": [],
"atWxIds": [],
"disableWxIds": [],
"snsXml": "<TimelineObject><id><![CDATA[14287710809635828232]]></id><username><![CDATA[wxid_g66c3f6y1eg922]]></username><createTime><![CDATA[1703227855]]></createTime><contentDescShowType>0</contentDescShowType><contentDescScene>0</contentDescScene><private><![CDATA[0]]></private><contentDesc></contentDesc><contentattr><![CDATA[0]]></contentattr><sourceUserName><![CDATA[]]></sourceUserName><sourceNickName><![CDATA[狮子领域 程序圈]]></sourceNickName><statisticsData></statisticsData><weappInfo><appUserName></appUserName><pagePath></pagePath><version><![CDATA[0]]></version><isHidden>0</isHidden><debugMode><![CDATA[0]]></debugMode><shareActionId></shareActionId><isGame><![CDATA[0]]></isGame><messageExtraData></messageExtraData><subType><![CDATA[0]]></subType><preloadResources></preloadResources></weappInfo><canvasInfoXml></canvasInfoXml><ContentObject><contentStyle><![CDATA[3]]></contentStyle><contentSubStyle><![CDATA[0]]></contentSubStyle><title><![CDATA[RuoYi-Vue-Plus 发布 5.1.2 版本 2023 最后一版]]></title><description><![CDATA[ ]]></description><contentUrl><![CDATA[http://mp.weixin.qq.com/s?__biz=Mzg4MDYyMzQ5OQ==&mid=2247488653&idx=1&sn=4adf3b791d46d25a117368acea19bd30&chksm=cf733e69f804b77f1fc08a994c41fb76ea933200b7cd484fa8b4fee8b810b1dd78a340c4cb83&mpshare=1&scene=2&srcid=1222KNQu96XLoOwcMuphqc5q&sharer_shareinfo=9689a1855d235961b3bc8f49f788da34&sharer_shareinfo_first=9689a1855d235961b3bc8f49f788da34#rd]]></contentUrl><mediaList><media><id><![CDATA[14287710810308162053]]></id><type><![CDATA[2]]></type><title></title><description></description><private><![CDATA[0]]></private><url type=\"1\"><![CDATA[http://shmmsns.qpic.cn/mmsns/C5Hh7IZThT42LQAraZkUG3bIHHicRLQeuzibCs1FqoIw0KSaQus3BleoNwvSSRcKnd200SBRM0cks/0]]></url><thumb type=\"1\"><![CDATA[http://shmmsns.qpic.cn/mmsns/C5Hh7IZThT42LQAraZkUG3bIHHicRLQeuzibCs1FqoIw0KSaQus3BleoNwvSSRcKnd200SBRM0cks/150]]></thumb><videoDuration><![CDATA[0.0]]></videoDuration><size totalSize=\"3636.0\" width=\"150.0\" height=\"150.0\"></size></media></mediaList><mmreadershare><itemshowtype>0</itemshowtype><ispaysubscribe>0</ispaysubscribe></mmreadershare></ContentObject><actionInfo><appMsg><mediaTagName></mediaTagName><messageExt></messageExt><messageAction></messageAction></appMsg></actionInfo><statExtStr></statExtStr><appInfo><id></id></appInfo><location poiClassifyId=\"\" poiName=\"\" poiAddress=\"\" poiClassifyType=\"0\" city=\"\"></location><publicUserName>gh_23471f7470c1</publicUserName><streamvideo><streamvideourl></streamvideourl><streamvideothumburl></streamvideothumburl><streamvideoweburl></streamvideoweburl></streamvideo></TimelineObject>",
"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": 14292805435261587000,
"userName": "zhangchuan2288",
"nickName": "朝夕。",
"createTime": 1703835181
}
}
修改于 2025-03-10 07:02:50