WeChat development: accesstoken getting user fan list tutorial

Source: Internet
Author: User
Use next_openid to get the next 10000 items. Generally, when there are more than 10000 followers, you do not need to call the URL interface when there are a few followers. in the previous chapter, we will explain how to use open_id to obtain basic user information, so where does open_id come from? It can be seen in the fans list. This topic explains how to obtain a list of fans.

Get fans list can view document http://mp.weixin.qq.com/wiki? T = resource/res_main & id = mp1421140840 & token = & lang = zh_CN

For more information, see next_openid. Generally, when there are more than 10000 followers, you do not need to call the URL interface when there are few followers:

Request method: GET (use https protocol)

Https://api.weixin.qq.com/cgi-bin/user/get? Access_token = ACCESS_TOKEN & next_openid = NEXT_OPENID

The code is as follows:

You can obtain the next 1000 entries based on next_openid until the count value of the obtained data is null.

The above is the development: accesstoken obtains the details of the user fan list tutorial. For more information, see other related articles on php Chinese network!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.