转发朋友圈
在新设备登录后的1-3天内,您将无法使用朋友圈发布、点赞、评论等功能。在此期间,如果尝试进行这些操作,您将收到来自微信团队的提醒。请注意遵守相关规定。
请求参数
Header 参数
export interface ApifoxModel {
"X-GEWE-TOKEN": string;
[property: string]: any;
}
Body 参数 application/json
export interface ApifoxModel {
/**
* 允许谁看
*/
allowWxIds: string[];
/**
* 设备ID
*/
appId: null | string;
/**
* 提醒谁看
*/
atWxIds: string[];
/**
* 不给谁看
*/
disableWxIds: string[];
/**
* 是否私密
*/
privacy?: boolean | null;
/**
* 朋友圈xml
*/
snsXml: string;
[property: string]: any;
}
示例
{
"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
}
示例代码
curl --location --request POST 'http://api.geweapi.com/gewe/v2/api/sns/forwardSns' \
--header 'X-GEWE-TOKEN: ' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--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
}'
返回响应
成功(200)
HTTP 状态码: 200 内容格式: JSON
数据结构
export interface ApifoxModel {
data: Data;
msg: string;
ret: number;
[property: string]: any;
}
export interface Data {
/**
* 发布时间
*/
createTime: number;
/**
* 朋友圈ID
*/
id: number;
/**
* 朋友圈作者的昵称
*/
nickName: string;
/**
* 朋友圈作者的wxid
*/
userName: string;
[property: string]: any;
}
示例
{
"ret": 200,
"msg": "操作成功",
"data": {
"id": 14292805435261587993,
"userName": "zhangchuan2288",
"nickName": "朝夕。",
"createTime": 1703835181
}
}