Joke Collection Website - Public benefit messages - How does the WeChat API interface obtain user information? How does the WeChat API interface obtain user information?

How does the WeChat API interface obtain user information? How does the WeChat API interface obtain user information?

What are the conditions required for WeChat official account to obtain the user’s mobile phone number through API? Enterprise-certified subscription account or WeChat official account

WeChat official account Obtaining the user's mobile phone number through API requires an enterprise-certified subscription account or WeChat official account, which cannot be obtained by ordinary users. The official WeChat account has an interface that can obtain information such as nicknames, avatars, cities, etc. of followers. Subscription accounts are not accepted, but enterprise certified subscription accounts or WeChat official accounts are acceptable.

The domain name of the WeChat authorization initiation page is the authorization callback domain name when the WeChat official account logs in to the authorized third-party platform. During the login authorization process for the WeChat official account, you need to jump from the webpage in the domain name to the login authorization page to complete the login authorization.

Extended information:

After WeChat authorization is successful, the URI provided during authorization will be called back, and the public platform will check the URI. It is necessary to ensure that the domain name to which the URI belongs is consistent with the authorized domain name provided when applying for the service.

In addition, users need to note that the list of WeChat official accounts authorized for testing is published before the entire network, and only WeChat official accounts in this list can be authorized for testing. Please fill in the original ID of the WeChat official account (can be queried on the WeChat official account setting page of the public platform website), with a maximum of 10 ";" in English. separate.

What does WeChat API mean?

WeChat API is the public platform message interface that provides developers with a new message processing method. The WeChat public platform message interface provides developers with a new message processing method. The WeChat public platform message interface provides developers with the ability to interact with users through messages. For WeChat public accounts that have successfully accessed the message interface, when the user sends a message to the public account, the WeChat public platform server will use http requests to push the message to the accessed URL. The third-party server can reply with a specific structure through the response package to achieve a reply. The purpose of the message.

How do mini programs get links?

The specific steps are as follows:

1. First, open the mini program calling interface that needs to obtain the link to obtain the login credentials, and then exchange the user login status information, including the user’s unique identifier and this time Login session key.

2. Then, get the openid, get the code obtained in the previous step, and return it together with the mini program appid and secret request interface, including session_key, where session_key is the key to encrypt and sign user data. key. For the sake of application security, session_key should not be transmitted over the network.

3. Then, you cannot obtain more information by directly using wx.getUserInfo, such as the openid of a WeChat user.

4. Then, you need to send the obtained code to make a request to WeChat's back-end API, and then perform operations such as user decryption to obtain it. According to the document, you only need to make a get request to the following address.

5. Then, you need to send the obtained code to make a request to WeChat's back-end API to obtain more information correctly. This may be for security reasons.

6. After completing the above steps, you can obtain the mini program link.

Does the WeChat subscription account have an API interface for group messaging?

On the public platform website, the subscription account is provided with the permission to send one message per day, and the service account is provided with the permission to send four messages per month (natural month). For some public account operators with development capabilities, they can achieve more flexible group sending capabilities through the advanced group sending interface. 1. This interface is temporarily only provided to service accounts that have been certified by WeChat. 2. Although developers are limited to 100 daily calls using the advanced group messaging interface, users can only receive 4 messages per month. Please test carefully. 3. Whether in the public On the platform website, the interface is still used for mass messaging. Users can only receive 4 mass messages per month. Mass messages with more than 4 messages will fail to be sent to the user.

4. Official accounts with WeChat payment permissions can use the

tag to add external links when using the advanced group sending interface to upload and send group text messages.

How to obtain the mini program homepage link ?

The specific steps are as follows:

1. First, open the mini program calling interface that needs to obtain the link to obtain the login credentials, and then exchange the user login status information, including the user’s unique identifier and this time Login session key.

2. Then, get the openid, get the code obtained in the previous step, and return it together with the mini program appid and secret request interface, including session_key, where session_key is the key to encrypt and sign user data. key. For the sake of application security, session_key should not be transmitted over the network.

3. Then, you cannot obtain more information by directly using wx.getUserInfo, such as the openid of a WeChat user.

4. Then, you need to send the obtained code to make a request to WeChat's back-end API, and then perform operations such as user decryption to obtain it. According to the document, you only need to make a get request to the following address.

5. Then, you need to send the obtained code to make a request to WeChat's back-end API to obtain more information correctly. This may be for security reasons.

6. After completing the above steps, you can obtain the mini program link.