Multiple Public Accounts (service numbers and subscription numbers) need to communicate with each other

Source: Internet
Author: User
Tags openid
Since multiple public accounts in a company need to communicate with each other, the open platform provides the unionid mechanism to solve this problem.

Through the interface for obtaining basic user information, developers can obtain basic user information through openid. If a developer has multiple public accounts, you can use the unionid mechanism to connect user accounts among multiple public accounts.

1. bind multiple public accounts to the same Open Platform (open.weixin.qq.com) account, that is, 2 under the same union. the unionid in the basic user information interface is used to identify the uniqueness of a user. However, note that the public account will obtain the unionid only after it is bound to an open platform account. As long as it is a public account under the same open platform account, the user's unionid is unique. In other words, unionid is the same for different applications under the same open platform account. I. register an open platform

Address: http://open.weixin.qq.com/

2. Bind a public account

Click "Management Center" on the top, select "Public Account", and click "bind public account"

Note: Only Authenticated public accounts can be bound.

3. obtain basic user information

Openid is different under different public accounts, while their unionid is the same

This is achieved through obtaining basic user information from advanced interfaces. For methods, refer to public platform development (86) to obtain basic user information.

The user information obtained under the first public account is as follows:

{"Subscribe": 1, "openid": "oLVPpjqs9BhvzwPj5A-vTYAX3GLc", "nickname": "", "sex": 1, "language": "zh_cn ", "city": "Guangdong", "Province": "Shenzhen", "country": "China", "headimgurl": "http://wx.qlogo.cn/mmopen/utpKYf69VAbCRDRlbUsPsdQN38DoibCkrU6SAMCSNx558eTaLVM8PyM6jlEGzOrH67hyZibIZPXu4BK1XNWzSXB3Cs4qpBBg18/0", "subscribe_time": 1375706487, "unionid": "oTBn-jt2RQSHdBoJQYFSdnZo8BBQ "}

The user information obtained under the first public account is as follows:

{"Subscribe": 1, "openid": "oubmej6wfnufbiuke83vd7s7dft9", "nickname": "Times", "sex": 1, "language": "zh_cn ", "city": "Guangdong", "Province": "Shenzhen", "country": "China", "headimgurl": "http://wx.qlogo.cn/mmopen/utpKYf69VAbCRDRlbUsPsdQN38DoibCkrU6SAMCSNx558eTaLVM8PyM6jlEGzOrH67hyZibIZPXu4BK1XNWzSXB3Cs4qpBBg18/0", "subscribe_time": 1375726425, "unionid": "oTBn-jt2RQSHdBoJQYFSdnZo8BBQ "}
Iv. Significance of unionid

For enterprises with multiple accounts, unionid can help identify whether users under different public accounts are the same person. In this way, the services provided to the user under different accounts can be continuously increased.

You can also remove the number of users who are paying attention to each other to collect statistics on the total number of users actually paying attention.

Multiple Public Accounts (service numbers and subscription numbers) need to communicate with each other

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.