| 主機(jī)參考:VPS測(cè)評(píng)參考推薦/專(zhuān)注分享VPS服務(wù)器優(yōu)惠信息!若您是商家可以在本站進(jìn)行投稿,查看詳情!此外我們還提供軟文收錄、PayPal代付、廣告贊助等服務(wù),查看詳情! |
| 我們發(fā)布的部分優(yōu)惠活動(dòng)文章可能存在時(shí)效性,購(gòu)買(mǎi)時(shí)建議在本站搜索商家名稱(chēng)可查看相關(guān)文章充分了解該商家!若非中文頁(yè)面可使用Edge瀏覽器同步翻譯!PayPal代付/收錄合作 |
1.設(shè)置用戶(hù)注釋名稱(chēng)接口:https://api.weixin.qq.com/cgi-bin/user/info/updateremark?.訪(fǎng)問(wèn)令牌=訪(fǎng)問(wèn)令牌
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="。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回:
{ & quot錯(cuò)誤代碼& quot:0,& quoterrmsg & quot:& quot好的}2.獲取用戶(hù)基本信息的接口: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?訪(fǎng)問(wèn)令牌= & 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昵稱(chēng)& quot:& quot承諾& quot,& quot性& quot:1 & quot;語(yǔ)言& quot:& quotzh _ CN & quot,& quot城市& quot:& quot",& quot省":& quot",& quot國(guó)家& 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訂閱時(shí)間& quot:1504708412備注& quot:& quot約翰& quot,& quotgroupid & quot:0 & quot;tagid _ list & quot: []}3.批量獲取用戶(hù)消息的接口:https://api.weixin.qq.com/cgi-bin/user/info/batchget?.訪(fǎng)問(wèn)令牌=訪(fǎng)問(wèn)令牌
batchget.php
& lt?PHP require _ once(& quot;../utils . PHP & quot;);$ data = & amp#39;{ & quot用戶(hù)列表& 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="。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回:
{ & quot用戶(hù)信息列表:【{ & quot訂閱& quot:1 & quot;openid & quot:& quoto 4 WM z0 h -4 hubuvquczx 2 ezaxil 9 c & quot;,& quot昵稱(chēng)& quot:& quot承諾& quot,& quot性& quot:1 & quot;語(yǔ)言& quot:& quotzh _ CN & quot,& quot城市& quot:& quot",& quot省":& quot",& quot國(guó)家& 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訂閱時(shí)間& quot:1504708412備注& quot:& quot約翰& quot,& quotgroupid & quot:0 & quot;tagid _ list & quot: []}} 4.創(chuàng)建一個(gè)標(biāo)簽接口:https://api.weixin.qq.com/cgi-bin/tags/create?.訪(fǎng)問(wèn)令牌=訪(fǎng)問(wèn)令牌
標(biāo)簽_create.php
& lt?PHP @ header(& amp;#39;content -類(lèi)型:文本/純文本;字符集= ut F-8 & amp;#39;);require _ once(& quot;../utils . PHP & quot;);$ data = & amp#39;{ & quot標(biāo)簽& quot:{ & quot名稱(chēng)& quot:& quot朋友“} } & amp#39;;$ url = & quothttps://api.weixin.qq.com/cgi-bin/tags/create? & quot;。"access_token="。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回:
{ & quot標(biāo)簽& quot:{ & quotid & quot:101名稱(chēng)& quot:& quot朋友“}}5。創(chuàng)建一個(gè)標(biāo)簽接口:https://api.weixin.qq.com/cgi-bin/tags/get?.訪(fǎng)問(wèn)令牌=訪(fǎng)問(wèn)令牌
tags_get.php
& lt?PHP @ header(& amp;#39;content -類(lèi)型:文本/純文本;字符集= ut F-8 & amp;#39;);require _ once(& quot;../utils . PHP & quot;);$ url = & quothttps://api.weixin.qq.com/cgi-bin/tags/get?訪(fǎng)問(wèn)令牌= & quot。utils::get _ access _ token();$ result = Utils::https _ request($ URL);echo $ result返回:
{ & quot標(biāo)簽& quot:【{ & quotid & quot:2 & quot;名稱(chēng)& quot:& quot明星團(tuán)體“伯爵& quot:0 },{ & quotid & quot:100名稱(chēng)& quot:& quot同學(xué)“,& quot伯爵& quot:0 },{ & quotid & quot:101名稱(chēng)& quot:& quot朋友”伯爵& quot: 0} ]}6.編輯標(biāo)簽接口:https://api.weixin.qq.com/cgi-bin/tags/update?.訪(fǎng)問(wèn)令牌=訪(fǎng)問(wèn)令牌
標(biāo)簽_更新。php
& lt?PHP @ header(& amp;#39;content -類(lèi)型:文本/純文本;字符集= ut F-8 & amp;#39;);require _ once(& quot;../utils . PHP & quot;);$ data = & amp#39;{ & quot標(biāo)簽& quot:{ & quotid & quot:101名稱(chēng)& quot:& quot好朋友“} } & amp#39;;$ url = & quothttps://api.weixin.qq.com/cgi-bin/tags/update? & quot;。"access_token="。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回:
{ & quot錯(cuò)誤代碼& quot:0,& quoterrmsg & quot:& quot好的}7.刪除標(biāo)簽當(dāng)某個(gè)標(biāo)簽下的粉絲數(shù)量超過(guò)10w時(shí),無(wú)法在后臺(tái)直接刪除該標(biāo)簽。此時(shí),開(kāi)發(fā)人員可以先取消標(biāo)記標(biāo)簽下的openid列表,然后直接刪除標(biāo)簽,直到粉絲數(shù)量不超過(guò)10w。
接口:https://api.weixin.qq.com/cgi-bin/tags/delete?訪(fǎng)問(wèn)令牌=訪(fǎng)問(wèn)令牌
標(biāo)簽_delete.php
& lt?PHP @ header(& amp;#39;content -類(lèi)型:文本/純文本;字符集= ut F-8 & amp;#39;);require _ once(& quot;../utils . PHP & quot;);$ data = & amp#39;{ & quot標(biāo)簽& quot:{ & quotid & quot:101 } } & amp#39;;$ url = & quothttps://api.weixin.qq.com/cgi-bin/tags/delete? & quot;。"access_token="。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回:
{ & quot錯(cuò)誤代碼& quot:0,& quoterrmsg & quot:& quot好的{8}批量給用戶(hù)貼標(biāo)簽功能目前支持微信官方賬號(hào)給用戶(hù)貼最多20個(gè)標(biāo)簽。
接口:https://API . weixin . QQ . com/CGI -bin/tags/members/batch tagging?訪(fǎng)問(wèn)令牌=訪(fǎng)問(wèn)令牌
tags_batchtagging.php
& lt?PHP @ header(& amp;#39;content -類(lèi)型:文本/純文本;字符集= 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="。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回結(jié)果:
{ & quot錯(cuò)誤代碼& quot:0,& quoterrmsg & quot:& quot好的}9.獲取標(biāo)簽下的粉絲列表的接口:https://api.weixin.qq.com/cgi-bin/user/tag/get?.訪(fǎng)問(wèn)令牌=訪(fǎng)問(wèn)令牌
“next _ openid“:“//要拉取的第一個(gè)OPENID,它將從零開(kāi)始拉取,無(wú)需填寫(xiě)默認(rèn)值。
標(biāo)簽_get_user.php
& lt?PHP @ header(& amp;#39;content -類(lèi)型:文本/純文本;字符集= 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="。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回:
{ & quot伯爵& quot:1 & quot;數(shù)據(jù)& 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.獲取用戶(hù)的標(biāo)簽列表界面;https://api.weixin.qq.com/cgi-bin/tags/getidlist?訪(fǎng)問(wèn)令牌=訪(fǎng)問(wèn)令牌
tags_getidlist.php
& lt?PHP @ header(& amp;#39;content -類(lèi)型:文本/純文本;字符集= 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="。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回:
{ & quottagid _ list & quot: [100 ]}11.批量取消用戶(hù)標(biāo)記。
接口:https://API . weixin . QQ . com/CGI -bin/tags/members/batchuntagging?訪(fǎng)問(wèn)令牌=訪(fǎng)問(wèn)令牌
tags_batchuntagging.php
& lt?PHP @ header(& amp;#39;content -類(lèi)型:文本/純文本;字符集= 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="。utils::get _ access _ token();$ result = Utils::https _ request($ URL,$ data);echo $ result返回:
{ & quot錯(cuò)誤代碼& quot:0,& quoterrmsg & quot:& quot好的}
這幾篇文章你可能也喜歡:
- 打開(kāi)企業(yè)轉(zhuǎn)移到用戶(hù)界面(如何批準(zhǔn)企業(yè)帳戶(hù)轉(zhuǎn)移)
- 如何在微信網(wǎng)頁(yè)上獲取基本用戶(hù)信息(在網(wǎng)頁(yè)上獲取微信ID)
- 小程序如何獲取用戶(hù)當(dāng)前位置(微信小程序獲取用戶(hù)當(dāng)前位置)
- 如果windows7用戶(hù)被鎖定并且無(wú)法登錄該怎么辦(如果windows7用戶(hù)被鎖定該怎么辦)
- linux系統(tǒng)中用戶(hù)密碼存儲(chǔ)機(jī)制分析(Linux用戶(hù)名密碼的存儲(chǔ)位置)
本文由主機(jī)參考刊發(fā),轉(zhuǎn)載請(qǐng)注明:微信微信官方賬號(hào)實(shí)現(xiàn)用戶(hù)管理功能(微信官方賬號(hào)中的管理員權(quán)限設(shè)置在哪里) http://m.k2270.com/106683.html
主機(jī)參考

















評(píng)論前必須登錄!
注冊(cè)