Help customers reuse the main body of the official account to quickly register the applet through the third-party platform interface

Preliminary preparation:

Third-party platform account;

The appid and APPSECRET of the third-party platform;

Configuration related information: basic information, development materials, permission set (note to check the "Quick Registration Mini Program" permission in the official account);

The appid of the customer's official account;

registration process:

1. Start the ticket push service in the background

Start Ticket Push Service | WeChat Open Documentation WeChat Developer Platform Documentation https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/component_verify_ticket_service.html

2. The background obtains the verification ticket

Verification Ticket | WeChat Open Documentation WeChat Developer Platform Documentation https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/component_verify_ticket.html

3. Background get token token

Token | WeChat Open Documentation WeChat Developer Platform Documentation https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/component_access_token.html

 4. Get the pre-authorization code in the background

Pre-Auth Code | WeChat Open Documentation WeChat Developer Platform Documentation https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/pre_auth_code.html

5. The front desk generates an authorization link and jumps

Authorization Process Technical Description | WeChat Open Documentation WeChat Developer Platform Documentation https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/Authorization_Process_Technical_Description.html

After the user scans and clicks on authorization, we will jump to our own page, which will carry the parameter auth_code, and the foreground obtains the parameter and requests the background interface to send the auth_code;

7. Get the API call token in the background

Get/Refresh API Call Token | WeChat Open Documentation WeChat Developer Platform Documentation https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/api_authorizer_token.html

8. The front desk generates a registration link and jumps

After the user scans and clicks OK, it will jump to our own page, which will carry the parameter ticket, and the foreground obtains the parameter and requests the background interface to send the ticket;

9. Backstage request WeChat interface to complete quick registration

Quick Registration Mini Program for Reusing Official Account Subject | WeChat Open Documentation WeChat Developer Platform Documentation https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Register_Mini_Programs/fast_registration_of_mini_program.html

The registered Mini Program cannot be logged in, and the Mini Program can be managed according to the API provided by the third-party platform;

If you need to log in to the administrator, you can go to the "Mini Program Assistant" and fill in the email address and password to log in after successful verification;

How to set the login email and password for the Mini Program registered on behalf of the third party in the "Mini Program Assistant" Tencent customer service official website website, to solve the problems encountered in the process of using Tencent products, Tencent customer service center reminds you: Beware of online deception, teach you how to Identifying Internet Fraud icon-default.png?t=LA92https://kf.qq.com/touch/sappfaq/200617VbQzaa200617aq67ru.html

See if you need to change the administrator according to your needs

Binding process:

1. The front desk generates a binding link and jumps

The user needs to fill in the current administrator's ID number and the new administrator's name, ID number, mobile phone number and other information. Both parties need to scan the code, and then jump to our own page, which will carry the parameter taskid. The front desk obtains the parameters and requests the back end The interface sends taskid;

Quick Registration Mini Program for Reusing Official Account Subject | WeChat Open Document WeChat Developer Platform Documentation https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Register_Mini_Programs/fast_registration_of_mini_program.html#_2- %E6%8D%A2%E7%BB%91%E5%B0%8F%E7%A8%8B%E5%BA%8F%E7%AE%A1%E7%90%86%E5%91%98%E6 %8E%A5%E5%8F%A3

2. The background request the WeChat interface to complete the binding

Note that there is an extra space in 'cgi-bin' here, which needs to be deleted; 

Guess you like

Origin blog.csdn.net/qq_18676843/article/details/122036504