Traditional Culture Encyclopedia - Hotel reservation - Authorization binding of WeChat third-party platform
Authorization binding of WeChat third-party platform
Technical process of one-click login authorization for third-party platforms by official WeChat account.
1. Users enter the third-party platform (Tiangou) WeChat management system.
Generally speaking, users need to go to the websites of third-party platforms first, such as:
2. The third-party platform (Tiangou) obtains the pre-authorization code.
Pre-authorization code is the necessary information for the third-party platform (Tiangou) to realize authorization hosting, and the pre-authorization code can be obtained by calling the open platform interface.
3. Modify and overwrite the existing network after publishing.
Third-party platforms can place the entrance of WeChat official account login authorization on the homepage of their own websites, and guide the WeChat official account operators to enter the authorization page of third-party platforms. The website address is: /cgi-bin/componentloginpage? Component appid = xxxx & pre-authentication code = xxxx & redirect uri=xxxx.
The third-party platform of this website needs to provide the appid, pre-authorization code pre_auth_code and callback URI of the third-party platform.
4. The user confirms and agrees to authorize login to the third-party platform.
After entering the authorization page of the third-party platform, users need to confirm and agree to authorize their official WeChat account to log in to the third-party platform to complete the authorization process.
5. Call back the URI after authorization to get the authorization code and expiration time.
After the authorization process is completed, it will enter the callback URI, as well as the authorization code and expiration time (redirect_url? Authorization code = XXX & expires _ in = 600)
6. Use the authorization code to call the relevant API of WeChat official account or applet.
After obtaining the authorization code, the third-party platform can use the authorization code to exchange the interface calling certificate (authorization r _ access _ token) for authorizing the official WeChat account or applet, and then call the official WeChat account or applet related API through the interface calling certificate according to the instructions of the official WeChat account developer document or applet development document.
There is no third-party platform for network-wide publishing. You need to add the official WeChat account ID(gh_xxxxx, etc.) to the test account. Otherwise, you need to apply for publishing on the whole network, otherwise you will report the wrong picture.
- Previous article:Tourist experience job responsibilities
- Next article:Are there any cheaper and cleaner hotels near Jie Fangbei?
- Related articles
- How to get to Dalian Railway Station from Dalian Rose Plaza Hotel?
- Seek the lines of "Winning the Prize" in 213 Liaoshi Spring Festival Evening. Wait online!
- Who is the developer of Xiaogan Yatai Galaxy?
- Of the six actors who died in Country Love, who is the most regrettable?
- What about Yancheng Guotou Hotel Co., Ltd.?
- Boyfriend said the lighter was in the hotel?
- How about Hangzhou Longwu Tea City near B&B, Yin Zhe's three-bedroom in Xixi Wetland, Song Cheng? Are there any interesting places?
- 8 summaries of business etiquette training work
- How about Zhengzhou Huangniuzhuang Hotel Management Co., Ltd.?
- What's the name of Ku Kuiqi Cantonese skewer song?