VPS参考测评推荐
专注分享VPS主机优惠信息
衡天云优惠活动
华纳云最新优惠促销活动
jtti最新优惠促销活动

微信微信官方账号实现用户管理功能(微信官方账号中的管理员权限设置在哪里)

locvps
主机参考:VPS测评参考推荐/专注分享VPS服务器优惠信息!若您是商家可以在本站进行投稿,查看详情!此外我们还提供软文收录、PayPal代付、广告赞助等服务,查看详情!
我们发布的部分优惠活动文章可能存在时效性,购买时建议在本站搜索商家名称可查看相关文章充分了解该商家!若非中文页面可使用Edge浏览器同步翻译!PayPal代付/收录合作

1.设置用户注释名称接口:https://api.weixin.qq.com/cgi-bin/user/info/updateremark?.访问令牌=访问令牌

updateremark.php

& lt?PHP require _ once(& quot;../utils . PHP & quot;);$ data = & amp#39;{ & quotopenid & quot:& quoto 4 WM z0 h -4 hubuvquczx 2 ezaxil 9 c & quot;,& quot备注& quot:& quot约翰& quot} & amp#39;;$ url = & quothttps://api.weixin.qq.com/cgi-bin/user/info/updateremark? & quot;。"access_token=&quot。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回:

{ & quot错误代码& quot:0,& quoterrmsg & quot:& quot好的}2.获取用户基本信息的接口:https://api.weixin.qq.com/cgi-bin/user/info?. ACCESS _ TOKEN = ACCESS _ TOKEN & OPENID = OPENID & lang = zh _ CN

userInfp.php

& lt?PHP require _ once(& quot;../utils . PHP & quot;);$ openId = & quoto 4 WM z0 h -4 hubuvquczx 2 ezaxil 9 c & quot;;$ url = & quothttps://api.weixin.qq.com/cgi-bin/user/info?访问令牌= & quot。Utils::get_access_token()。"& ampopenid = & quot。$openId。"& amplang = zh _ CN & quot;$ result = Utils::https _ request($ URL);echo $ result返回:

{ & quot订阅& quot:1 & quot;openid & quot:& quoto 4 WM z0 h -4 hubuvquczx 2 ezaxil 9 c & quot;,& quot昵称& quot:& quot承诺& quot,& quot性& quot:1 & quot;语言& quot:& quotzh _ CN & quot,& quot城市& quot:& quot",& quot省&quot:& quot",& quot国家& quot:& quot",& quotheadimgurl & quot:& quothttp://wx . qlogo . cn/mmopen/VQ 7 pmkmoamygtqnjbrdesiantxgggkliao i3 stutng5 Dua 1 oyaetlodjicyhu 9 ekmvly 2 gxf 7 rhbzgniapodyvmz 0 one GM 7 PFG bb/0 & quot;,& quot订阅时间& quot:1504708412备注& quot:& quot约翰& quot,& quotgroupid & quot:0 & quot;tagid _ list & quot: []}3.批量获取用户消息的接口:https://api.weixin.qq.com/cgi-bin/user/info/batchget?.访问令牌=访问令牌

batchget.php

& lt?PHP require _ once(& quot;../utils . PHP & quot;);$ data = & amp#39;{ & quot用户列表& quot:【{ & quotopenid & quot:& quoto 4 WM z0 h -4 hubuvquczx 2 ezaxil 9 c & quot;,& quot郎:& quotzh _ CN & quot}】} & amp;#39;;$ url = & quothttps://api.weixin.qq.com/cgi-bin/user/info/batchget? & quot;。"access_token=&quot。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回:

{ & quot用户信息列表:【{ & quot订阅& quot:1 & quot;openid & quot:& quoto 4 WM z0 h -4 hubuvquczx 2 ezaxil 9 c & quot;,& quot昵称& quot:& quot承诺& quot,& quot性& quot:1 & quot;语言& quot:& quotzh _ CN & quot,& quot城市& quot:& quot",& quot省&quot:& quot",& quot国家& quot:& quot",& quotheadimgurl & quot:& quothttp://wx . qlogo . cn/mmopen/VQ 7 pmkmoamygtqnjbrdesiantxgggkliao i3 stutng5 Dua 1 oyaetlodjicyhu 9 ekmvly 2 gxf 7 rhbzgniapodyvmz 0 one GM 7 PFG bb/0 & quot;,& quot订阅时间& quot:1504708412备注& quot:& quot约翰& quot,& quotgroupid & quot:0 & quot;tagid _ list & quot: []}} 4.创建一个标签接口:https://api.weixin.qq.com/cgi-bin/tags/create?.访问令牌=访问令牌

标签_create.php

& lt?PHP @ header(& amp;#39;content -类型:文本/纯文本;字符集= ut F-8 & amp;#39;);require _ once(& quot;../utils . PHP & quot;);$ data = & amp#39;{ & quot标签& quot:{ & quot名称& quot:& quot朋友“} } & amp#39;;$ url = & quothttps://api.weixin.qq.com/cgi-bin/tags/create? & quot;。"access_token=&quot。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回:

{ & quot标签& quot:{ & quotid & quot:101名称& quot:& quot朋友“}}5。创建一个标签接口:https://api.weixin.qq.com/cgi-bin/tags/get?.访问令牌=访问令牌

tags_get.php

& lt?PHP @ header(& amp;#39;content -类型:文本/纯文本;字符集= ut F-8 & amp;#39;);require _ once(& quot;../utils . PHP & quot;);$ url = & quothttps://api.weixin.qq.com/cgi-bin/tags/get?访问令牌= & quot。utils::get _ access _ token();$ result = Utils::https _ request($ URL);echo $ result返回:

{ & quot标签& quot:【{ & quotid & quot:2 & quot;名称& quot:& quot明星团体“伯爵& quot:0 },{ & quotid & quot:100名称& quot:& quot同学“,& quot伯爵& quot:0 },{ & quotid & quot:101名称& quot:& quot朋友”伯爵& quot: 0} ]}6.编辑标签接口:https://api.weixin.qq.com/cgi-bin/tags/update?.访问令牌=访问令牌

标签_更新。php

& lt?PHP @ header(& amp;#39;content -类型:文本/纯文本;字符集= ut F-8 & amp;#39;);require _ once(& quot;../utils . PHP & quot;);$ data = & amp#39;{ & quot标签& quot:{ & quotid & quot:101名称& quot:& quot好朋友“} } & amp#39;;$ url = & quothttps://api.weixin.qq.com/cgi-bin/tags/update? & quot;。"access_token=&quot。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回:

{ & quot错误代码& quot:0,& quoterrmsg & quot:& quot好的}7.删除标签当某个标签下的粉丝数量超过10w时,无法在后台直接删除该标签。此时,开发人员可以先取消标记标签下的openid列表,然后直接删除标签,直到粉丝数量不超过10w。

接口:https://api.weixin.qq.com/cgi-bin/tags/delete?访问令牌=访问令牌

标签_delete.php

& lt?PHP @ header(& amp;#39;content -类型:文本/纯文本;字符集= ut F-8 & amp;#39;);require _ once(& quot;../utils . PHP & quot;);$ data = & amp#39;{ & quot标签& quot:{ & quotid & quot:101 } } & amp#39;;$ url = & quothttps://api.weixin.qq.com/cgi-bin/tags/delete? & quot;。"access_token=&quot。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回:

{ & quot错误代码& quot:0,& quoterrmsg & quot:& quot好的{8}批量给用户贴标签功能目前支持微信官方账号给用户贴最多20个标签。

接口:https://API . weixin . QQ . com/CGI -bin/tags/members/batch tagging?访问令牌=访问令牌

tags_batchtagging.php

& lt?PHP @ header(& amp;#39;content -类型:文本/纯文本;字符集= ut F-8 & amp;#39;);require _ once(& quot;../utils . PHP & quot;);$ data = & amp#39;{ & quotopenid _ list & quot:【& quoto 4 WM z0 h -4 hubuvquczx 2 ezaxil 9 c & quot;】,& quottagid & quot:100 } & amp#39;;$ url = & quothttps://API . weixin . QQ . com/CG i-bin/tags/members/batch tagging?"。"access_token=&quot。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回结果:

{ & quot错误代码& quot:0,& quoterrmsg & quot:& quot好的}9.获取标签下的粉丝列表的接口:https://api.weixin.qq.com/cgi-bin/user/tag/get?.访问令牌=访问令牌

“next _ openid“:“//要拉取的第一个OPENID,它将从零开始拉取,无需填写默认值。

标签_get_user.php

& lt?PHP @ header(& amp;#39;content -类型:文本/纯文本;字符集= ut F-8 & amp;#39;);require _ once(& quot;../utils . PHP & quot;);$ data = & amp#39;{ & quottagid & quot:100next _ openid & quot:& quot"} & amp#39;;$ url = & quothttps://api.weixin.qq.com/cgi-bin/user/tag/get? & quot;。"access_token=&quot。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回:

{ & quot伯爵& quot:1 & quot;数据& quot:{ & quotopenid & quot:【& quoto 4 WM z0 h -4 hubuvquczx 2 ezaxil 9 c & quot;】},& quotnext _ openid & quot:& quoto 4 WM z0 h -4 hubuvquczx 2 ezaxil 9 c & quot;}10.获取用户的标签列表界面;https://api.weixin.qq.com/cgi-bin/tags/getidlist?访问令牌=访问令牌

tags_getidlist.php

& lt?PHP @ header(& amp;#39;content -类型:文本/纯文本;字符集= ut F-8 & amp;#39;);require _ once(& quot;../utils . PHP & quot;);$ data = & amp#39;{ & quotopenid & quot:& quoto 4 WM z0 h -4 hubuvquczx 2 ezaxil 9 c & quot;} & amp#39;;$ url = & quothttps://api.weixin.qq.com/cgi-bin/tags/getidlist? & quot;。"access_token=&quot。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回:

{ & quottagid _ list & quot: [100 ]}11.批量取消用户标记。

接口:https://API . weixin . QQ . com/CGI -bin/tags/members/batchuntagging?访问令牌=访问令牌

tags_batchuntagging.php

& lt?PHP @ header(& amp;#39;content -类型:文本/纯文本;字符集= ut F-8 & amp;#39;);require _ once(& quot;../utils . PHP & quot;);$ data = & amp#39;{ & quotopenid _ list & quot:【& quoto 4 WM z0 h -4 hubuvquczx 2 ezaxil 9 c & quot;】,& quottagid & quot:100 } & amp#39;;$ url = & quothttps://API . weixin . QQ . com/CGI -bin/tags/members/batchuntagging?"。"access_token=&quot。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回:

{ & quot错误代码& quot:0,& quoterrmsg & quot:& quot好的}

这几篇文章你可能也喜欢:

本文由主机参考刊发,转载请注明:微信微信官方账号实现用户管理功能(微信官方账号中的管理员权限设置在哪里) https://zhujicankao.com/106683.html

【腾讯云】领8888元采购礼包,抢爆款云服务器 每月 9元起,个人开发者加享折上折!
打赏
转载请注明原文链接:主机参考 » 微信微信官方账号实现用户管理功能(微信官方账号中的管理员权限设置在哪里)
主机参考仅做资料收集,不对商家任何信息及交易做信用担保,购买前请注意风险,有交易纠纷请自行解决!请查阅:特别声明

评论 抢沙发

评论前必须登录!