小編給大家分享一下微信公眾號(hào)實(shí)現(xiàn)用戶管理功能的方法,希望大家閱讀完這篇文章之后都有所收獲,下面讓我們一起去探討吧!
網(wǎng)站建設(shè)哪家好,找創(chuàng)新互聯(lián)建站!專注于網(wǎng)頁(yè)設(shè)計(jì)、網(wǎng)站建設(shè)、微信開發(fā)、小程序制作、集團(tuán)企業(yè)網(wǎng)站建設(shè)等服務(wù)項(xiàng)目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了建始免費(fèi)建站歡迎大家使用!
接口:https://api.weixin.qq.com/cgi-bin/user/info/updateremark?access_token=ACCESS_TOKEN
updateremark.php
返回:
{"errcode":0,"errmsg":"ok"}2、獲取用戶基本信息
接口:https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN
userInfp.php
返回:
{ "subscribe": 1, "openid": "o4WmZ0h-4huBUVQUczx2ezaxIL9c", "nickname": "Promise", "sex": 1, "language": "zh_CN", "city": "", "province": "", "country": "", "headimgurl": "http://wx.qlogo.cn/mmopen/Vq7PMkMOaMYgtQNJBrdesiantXGgGkliaoI3StUtnG5DUA1oYaeTlOdjicYHu9EkMvLY2gXf7rHBzGNiaPoDyvmZ0ONEGm7PfGBb/0", "subscribe_time": 1504708412, "remark": "Jhon", "groupid": 0, "tagid_list": [] }3、批量獲取用戶消息
接口:https://api.weixin.qq.com/cgi-bin/user/info/batchget?access_token=ACCESS_TOKEN
batchget.php
返回:
{ "user_info_list": [ { "subscribe": 1, "openid": "o4WmZ0h-4huBUVQUczx2ezaxIL9c", "nickname": "Promise", "sex": 1, "language": "zh_CN", "city": "", "province": "", "country": "", "headimgurl": "http://wx.qlogo.cn/mmopen/Vq7PMkMOaMYgtQNJBrdesiantXGgGkliaoI3StUtnG5DUA1oYaeTlOdjicYHu9EkMvLY2gXf7rHBzGNiaPoDyvmZ0ONEGm7PfGBb/0", "subscribe_time": 1504708412, "remark": "Jhon", "groupid": 0, "tagid_list": [] } ] }4、創(chuàng)建標(biāo)簽
接口:https://api.weixin.qq.com/cgi-bin/tags/create?access_token=ACCESS_TOKEN
tags_create.php
返回:
{ "tag": { "id": 101, "name": "朋友" } }5、獲取以創(chuàng)建標(biāo)簽
接口:https://api.weixin.qq.com/cgi-bin/tags/get?access_token=ACCESS_TOKEN
tags_get.php
返回:
{ "tags": [ { "id": 2, "name": "星標(biāo)組", "count": 0 }, { "id": 100, "name": "同學(xué)", "count": 0 }, { "id": 101, "name": "朋友", "count": 0 } ] }6、編輯標(biāo)簽
接口:https://api.weixin.qq.com/cgi-bin/tags/update?access_token=ACCESS_TOKEN
tags_update.php
返回:
{"errcode":0,"errmsg":"ok"}7、刪除標(biāo)簽
當(dāng)某個(gè)標(biāo)簽下的粉絲超過10w時(shí),后臺(tái)不可直接刪除標(biāo)簽。此時(shí),開發(fā)者可以對(duì)該標(biāo)簽下的openid列表,先進(jìn)行取消標(biāo)簽的操作,直到粉絲數(shù)不超過10w后,才可直接刪除該標(biāo)簽。
接口:https://api.weixin.qq.com/cgi-bin/tags/delete?access_token=ACCESS_TOKEN
tags_delete.php
返回:
{"errcode":0,"errmsg":"ok"}8、批量為用戶打標(biāo)簽
標(biāo)簽功能目前支持公眾號(hào)為用戶打上最多20個(gè)標(biāo)簽。
接口:https://api.weixin.qq.com/cgi-bin/tags/members/batchtagging?access_token=ACCESS_TOKEN
tags_batchtagging.php
返回結(jié)果:
{"errcode":0,"errmsg":"ok"}9、獲取標(biāo)簽下粉絲列表
接口:https://api.weixin.qq.com/cgi-bin/user/tag/get?access_token=ACCESS_TOKEN
"next_openid":""http://第一個(gè)拉取的OPENID,不填默認(rèn)從頭開始拉取
tags_get_user.php
返回:
{ "count": 1, "data": { "openid": [ "o4WmZ0h-4huBUVQUczx2ezaxIL9c" ] }, "next_openid": "o4WmZ0h-4huBUVQUczx2ezaxIL9c" }10、獲取用戶身上的標(biāo)簽列表
接口;https://api.weixin.qq.com/cgi-bin/tags/getidlist?access_token=ACCESS_TOKEN
tags_getidlist.php
返回:
{ "tagid_list": [ 100 ] }11、批量為用戶取消標(biāo)簽
接口:https://api.weixin.qq.com/cgi-bin/tags/members/batchuntagging?access_token=ACCESS_TOKEN
tags_batchuntagging.php
返回:
{"errcode":0,"errmsg":"ok"}看完了這篇文章,相信你對(duì)“微信公眾號(hào)實(shí)現(xiàn)用戶管理功能的方法”有了一定的了解,如果想了解更多相關(guān)知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,感謝各位的閱讀!
當(dāng)前文章:微信公眾號(hào)實(shí)現(xiàn)用戶管理功能的方法
當(dāng)前URL:http://weahome.cn/article/jssjdg.html