国产精品久久久久久久,女人的诱惑,亚洲中文无码亚洲人成软件,亚洲尺码一区二区三区,

  • 微信
    咨詢
    微信在線咨詢 服務時間:9:00-18:00
    縱橫數據官方微信 使用微信掃一掃
    馬上在線溝通
  • 業務
    咨詢

    QQ在線咨詢 服務時間:9:00-18:00

    選擇下列產品馬上在線溝通

    縱橫售前-老古
    QQ:519082853 售前電話:18950029581
    縱橫售前-江夏
    QQ:576791973 售前電話:19906048602
    縱橫售前-小李
    QQ:3494196421 售前電話:19906048601
    縱橫售前-小智
    QQ:2732502176 售前電話:17750597339
    縱橫售前-燕子
    QQ:609863413 售前電話:17750597993
    縱橫值班售后
    QQ:407474592 售后電話:400-1886560
    縱橫財務
    QQ:568149701 售后電話:18965139141

    售前咨詢熱線:

    400-188-6560

    業務姚經理:18950029581

  • 關注

    關于縱橫數據 更多優惠活動等您來拿!
    縱橫數據官方微信 掃一掃關注官方微信
  • 關閉
  • 頂部
  • 您所在的位置 : 首頁 > 新聞公告 > 微信公眾號實現用戶管理功能

    微信公眾號實現用戶管理功能

    1、設置用戶備注名

    接口://api.weixin.qq.com/cgi-bin/user/info/updateremark?access_token=ACCESS_TOKEN

    updateremark.php

    12345678910<?phprequire_once("../Utils.php");$data = '{    "openid":"o4WmZ0h-4huBUVQUczx2ezaxIL9c",    "remark":"Jhon"}';$url "//api.weixin.qq.com/cgi-bin/user/info/updateremark?"    ."access_token=".Utils::get_access_token();$result = Utils::https_request($url$data);echo $result;

    返回:

    1{"errcode":0,"errmsg":"ok"}

    2、獲取用戶基本信息

    接口://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN

    userInfp.php

    1234567<?phprequire_once("../Utils.php");$openId "o4WmZ0h-4huBUVQUczx2ezaxIL9c";$url "//api.weixin.qq.com/cgi-bin/user/info?access_token="    .Utils::get_access_token()."&openid=".$openId."&lang=zh_CN ";$result = Utils::https_request($url);echo $result;

    返回:

    123456789101112131415

    {    "subscribe": 1,    "openid""o4WmZ0h-4huBUVQUczx2ezaxIL9c",    "nickname""Promise",    "sex": 1,    "language""zh_CN",    "city""",    "province""",    "country""",    "headimgurl""//wx.qlogo.cn/mmopen/Vq7PMkMOaMYgtQNJBrdesiantXGgGkliaoI3StUtnG5DUA1oYaeTlOdjicYHu9EkMvLY2gXf7rHBzGNiaPoDyvmZ0ONEGm7PfGBb/0",    "subscribe_time": 1504708412,    "remark""Jhon",    "groupid": 0,    "tagid_list": []}

    3、批量獲取用戶消息

    接口://api.weixin.qq.com/cgi-bin/user/info/batchget?access_token=ACCESS_TOKEN

    batchget.php

    1234567891011121314<?phprequire_once("../Utils.php");$data = '{    "user_list": [       {           "openid""o4WmZ0h-4huBUVQUczx2ezaxIL9c",           "lang""zh_CN"       }   ]}';$url "//api.weixin.qq.com/cgi-bin/user/info/batchget?"    ."access_token=".Utils::get_access_token();$result = Utils::https_request($url$data);echo $result;

    返回:

    12345678910111213141516171819

    {    "user_info_list": [        {            "subscribe": 1,            "openid""o4WmZ0h-4huBUVQUczx2ezaxIL9c",            "nickname""Promise",            "sex": 1,            "language""zh_CN",            "city""",            "province""",          
     
    "country""",            "headimgurl""//wx.qlogo.cn/mmopen/Vq7PMkMOaMYgtQNJBrdesiantXGgGkliaoI3StUtnG5DUA1oYaeTlOdjicYHu9EkMvLY2gXf7rHBzGNiaPoDyvmZ0ONEGm7PfGBb/0",            "subscribe_time": 1504708412,            "remark""Jhon",            "groupid": 0,            "tagid_list": []        }    ]}

    4、創建標簽

    接口://api.weixin.qq.com/cgi-bin/tags/create?access_token=ACCESS_TOKEN

    tags_create.php

    123456789101112<?php@header('Content-type: text/plain;charset=UTF-8');require_once("../Utils.php");$data = '{    "tag" : {        "name" "朋友"  }}';$url "//api.weixin.qq.com/cgi-bin/tags/create?"    ."access_token=".Utils::get_access_token();$result = Utils::https_request($url$data);echo $result;

    返回:

    123456{    "tag": {        "id": 101,        "name""朋友"    }}

    5、獲取以創建標簽

    接口://api.weixin.qq.com/cgi-bin/tags/get?access_token=ACCESS_TOKEN

    tags_get.php

    1234567<?php@header('Content-type: text/plain;charset=UTF-8');require_once("../Utils.php");$url "//api.weixin.qq.com/cgi-bin/tags/get?access_token="    .Utils::get_access_token();$result = Utils::https_request($url);echo $result;

    返回:

    12345678910111213141516171819{    "tags": [        {            "id": 2,            "name""星標組",            "count": 0        },        {            "id": 100,            "name""同學",            "count": 0        },        {            "id": 101,            "name""朋友",            "count": 0        }    ]}

    6、編輯標簽

    接口://api.weixin.qq.com/cgi-bin/tags/update?access_token=ACCESS_TOKEN

    tags_update.php

    12345678910111213<?php@header('Content-type: text/plain;charset=UTF-8');require_once("../Utils.php");$data = '{    "tag" : {        "id" : 101,    "name" "好朋友"  }}';$url "//api.weixin.qq.com/cgi-bin/tags/update?"    ."access_token=".Utils::get_access_token();$result = Utils::https_request($url$data);echo $result;

    返回:

    1{"errcode":0,"errmsg":"ok"}

    7、刪除標簽

    當某個標簽下的粉絲超過10w時,后臺不可直接刪除標簽。此時,開發者可以對該標簽下的openid列表,
    先進行取消標簽的操作,直到粉絲數不超過10w后,才可直接刪除該標簽。

    接口://api.weixin.qq.com/cgi-bin/tags/delete?access_token=ACCESS_TOKEN

    tags_delete.php

    123456789101112<?php@header('Content-type: text/plain;charset=UTF-8');require_once("../Utils.php");$data = '{    "tag" : {        "id" : 101    }}';$url "//api.weixin.qq.com/cgi-bin/tags/delete?"    ."access_token=".Utils::get_access_token();$result = Utils::https_request($url$data);echo $result;

    返回:

    1{"errcode":0,"errmsg":"ok"}

    8、批量為用戶打標簽

    標簽功能目前支持公眾號為用戶打上最多20個標簽。

    接口://api.weixin.qq.com/cgi-bin/tags/members/batchtagging?access_token=ACCESS_TOKEN

    tags_batchtagging.php

    12345678910111213<?php@header('Content-type: text/plain;charset=UTF-8');require_once("../Utils.php");$data = '{    "openid_list" : [        "o4WmZ0h-4huBUVQUczx2ezaxIL9c"    ],  "tagid" : 100}';$url "//api.weixin.qq.com/cgi-bin/tags/members/batchtagging?"    ."access_token=".Utils::get_access_token();$result = Utils::https_request($url$data);echo $result;

    返回結果:

    {"errcode":0,"errmsg":"ok"}

    9、獲取標簽下粉絲列表

    接口://api.weixin.qq.com/cgi-bin/user/tag/get?access_token=ACCESS_TOKEN

    "next_openid":""//第一個拉取的OPENID,不填默認從頭開始拉取

    tags_get_user.php

    1234567891011<?php@header('Content-type: text/plain;charset=UTF-8');require_once("../Utils.php");$data = '{  "tagid" : 100,  "next_openid":""}';$url "//api.weixin.qq.com/cgi-bin/user/tag/get?"    ."access_token=".Utils::get_access_token();$result = Utils::https_request($url$data);echo $result;

    返回:

    123456789{    "count": 1,    "data": {        "openid": [            "o4WmZ0h-4huBUVQUczx2ezaxIL9c"        ]    },    "next_openid""o4WmZ0h-4huBUVQUczx2ezaxIL9c"}

    10、獲取用戶身上的標簽列表

    接口;//api.weixin.qq.com/cgi-bin/tags/getidlist?access_token=ACCESS_TOKEN

    tags_getidlist.php

    12345678910<?php@header('Content-type: text/plain;charset=UTF-8');require_once("../Utils.php");$data = '{  "openid" "o4WmZ0h-4huBUVQUczx2ezaxIL9c"}';$url "//api.weixin.qq.com/cgi-bin/tags/getidlist?"    ."access_token=".Utils::get_access_token();$result = Utils::https_request($url$data);echo $result;

    返回:

    12345{    "tagid_list": [        100    ]}

    11、批量為用戶取消標簽

    接口://api.weixin.qq.com/cgi-bin/tags/members/batchuntagging?access_token=ACCESS_TOKEN

    tags_batchuntagging.php

    12345678910111213<?php@header('Content-type: text/plain;charset=UTF-8');require_once("../Utils.php");$data = '{    "openid_list" : [        "o4WmZ0h-4huBUVQUczx2ezaxIL9c"    ],  "tagid" : 100}';$url "//api.weixin.qq.com/cgi-bin/tags/members/batchuntagging?"    ."access_token=".Utils::get_access_token();$result = Utils::https_request($url$data);echo $result;

    返回:

    1{"errcode":0,"errmsg":"ok"}

    最新推薦


    微信公眾帳號
    關注我們的微信