# Creating and Configuring a Third Party Platform Preparation
The overall steps to create and configure a third-party platform are divided into:
When creating an account, you need to fill in basic information
After the completion of account creation, development configuration is required: mainly including permission set configuration and development data configuration
Once the development configuration is complete, you can debug
After debugging is completed, you can submit for review (you can also submit for review after submitting basic information, and then edit the development materials)
Finally, the whole network release (development information needs the whole network release will take effect on the current network)
However, in the basic information and development data filling link, there is more information to be prepared. This article will describe the preparation for the creation of third-party platforms, so that developers can be prepared in advance.
# Basic Information Preparation
1, need to prepare an accessible official website, need to fill in the official website address when creating a third-party platform
2, need to prepare 108 x 108 pixels, not more than 300 KB in size, and in PNG format, used as an icon for the platformWhen creating an account, you can use the default icon if you don't already have an icon ready
# Preparation of development materials
(1) Need to prepare the "Authorization Initiation Page Domain Name" for jumping from the domain name to the authorization page (if cloud development is enabled, it will default to support jumping from the web page in the cloud-hosted domain name to the login authorization page. )
2, need to prepare the "authorization event to receive URL," used to receive cancel authorization notification, authorization success notification, authorization update notification, also used to receive tickets. Simply put, messages that are pushed only to the service provider will be pushed to that URL. (If the cloud service mode is enabled, you only need to fill in the corresponding cloud environment and other information.)
3, need to prepare "message and event receive URL," for receiving the Official Account message template or Mini Program messages and events push. Simply understand that, simultaneously push to the service provider and the authorization of the Official Account message template or Mini Program message will be pushed to the URL. (If the cloud service mode is enabled, you only need to fill in the corresponding cloud environment and other information.)
4, if the Official Account message template is developed, you also need to prepare "Official Account message template to develop domain names” , as a call to JS Domain names used when web development work such as SDK
5, if it is a Mini Program development, you also need to prepare "Mini Program server domain name" and "Mini Program business domain name."
In addition, in order to help service providers more efficiently complete the construction and configuration of third-party platform back-end services, developers can choose the "Third-Party Platform Cloud Service Model."How to Build a Third-Party Platform Back End Service。
# Debugging preparation
1, need to be prepared Official Account message template Or Mini Program account, add it to “Development configuration - Development resources - Authorization testing Official Account message template/List of Mini Programs”
2, you need to debug the API's clinet Join "Development Configuration - Development Materials - Whitelist IP Address List"
# Detailed Development Information
1, the development information has a beta version and the current network version of the two information, the configuration of the beta version is only for [authorized testing] Official Account message template/The account in the Mini Program list is effective
- The information released by the whole network will only take effect on all authorized accounts.
# 1. Authorize the origination page domain name
The domain name of the authorization initiation page Official Account message template/The authorization of the Mini Program when logging in to a third-party platform calls back the domain name. Official Account message template/In the login authorization process for the Mini Program, you must jump from the page in the domain name to the login authorization page before you can complete the login authorization.
When authorization is successful, it will call back the URI, the platform will check the URI, it must be guaranteed that URI The domain name is consistent with the authorized domain name provided at the time of service application. Otherwise, an error message will appear on the authorization page that confirms the domain name of the authorization entry page, which is the same as the domain name of the callback page after authorization, and both of which must be the same as the domain name of the authorization initiation page filled in when applying for a third-party platform.
Note that the domain name does not need to come with
http://
Such as the content of the agreement, nor can you append a detailed URI Address, strictly in accordance with similarwww.qq.com
The writing.
# 2. Authorization Testing Official Account message template/初始值
Before the whole network is published, only within this list Official Account message template/Small programs can be authorized for testing. Please fill in Official Account message template/The Original Mini Program ID (can be found on the Official Account message template or Mini Program Settings page of the Public Platform website), up to 10 One, in English. `` Separated.
Note, is to fill in the original ID, not APPID, or it will report an error
# 3. Authorization Event Reception To configure
Used to receive messages and events that are only pushed to third-party platform accounts by all platforms, such as cancellation notification, authorization success notification, authorization update notification, etc.The information received is encrypted and needs to be decrypted as per the document.
Also used to receiveValidation note (component_verify_ticket),component_verify_ticket Is an important credential for the platform party, please keep it properly. The service is getting component_access_Token When you need to provide the latest push component_verify_ticket To verify the legitimacy of the identity
If you enable cloud development mode, you only need to fill in the corresponding cloud environment and other information.
# 4, message validation Token
Developers are replacing Official Account message template/When the Mini Program receives a message, use this Token To verify the message. Usage and Common Official Account message template/Mini Program Token Agreement
If cloud development mode is enabled, the item does not need to be filled out
# 5, message encryption and decryption Key
In place of Official Account message template/Mini Program to receive the message process used. Must be of length 43 Bit character string, can only be letters and numbers. Usage and Common Official Account message template/Mini Program symmetric_key Agreement
If cloud service mode is enabled, the entry does not need to be filled in
# 6, message and event receiving configuration
this URL For receiving an authorized Official Account message template/Mini Program received messages and events, message content, message format, signature, encryption and ordinary Official Account message template/The Mini Program receives the same, the only difference is the signature Token And encryption symmetric_key The information provided by the service provider at the time of application is used. Because the specific content of the message does not change, according to the ToUserName, the server can distinguish the specific message belongs to the Official Account message template/Mini Program.
If cloud service mode is enabled, you only need to fill in the corresponding cloud environment and other information.
Considering that the service needs to receive a large amount of authorization Official Account message template/The message received by Mini Program must be provided in the following form in order to facilitate business diversion and business isolation. url:www.abc.com/aaa/$APPID$/bbb/Cgi, where $APPID $is replaced with the Official Account message template that is authorized when actually pushed/The Mini Program. appid.
The third party platform only needs to obtain the authorization of a certain business module (without the authorization of customer service and menu permissions), and then after receiving the business module event push, if the event is allowed to proceed. 5 If you passively reply the message to the fans within seconds, then the third party can passively reply (which event push of the business module allows passive reply to the user and which do not, you need to consult the specific business module)
If the third party wants to get real-time access to the official account with new fan attention, just receive a reply after the attention event. success You don't have to reply otherwise. Official Account message template Automatic reply after multiple third-party fans are concerned at the same time.
# 7、 Official Account message template Developing Domain Names
- Official Account message template Development domain name can be filled in at most 3 Each in English. “” Symbol separated. Each Official Account message template Developing a domain name will produce 2 Please note that there is no need to “http://” You cannot attach a detailed directory to the end of the domain name.
初始值 In the domain name and meet the requirements of the subordinate domain name, you can replace the Official Account message template after authorization to initiate web authorization. The subordinate domain must be $APPID $.wx.abc.com The form ($APPID $for the Official Account message template AppID It is recommended that the third party use this method, if necessary, can do domain name mapping), if not according to this form to do, the Official Account message template Violation may result in the entire website being blocked.
- In the domain name (a domain name), can replace the license after Official Account message template call JS SDK (need to match the Official Account message template AppID)
# 8. Small Program Server Domain Name
Authorized to a third party Mini Program, its server domain name can only be the server of the third party platform, when the Mini Program released the code through the third party platform on the line, The server domain name originally configured by the Mini Program will be deleted, and only the domain name of the third-party platform will be retained, so the third-party platform needs to call the interface to add the third-party platform's own domain name for the Mini Program before releasing the code instead of the Mini Program.
Note that you need to register the domain name in the Mini Programs server domain name of the third-party platform before you can call the interface for configuration.
You can add up to 1000 legal server domain namesAmong them, the number of settings for the Request domain name, Socket domain name, Uploadfile domain name, Download domain name, Udp domain name, and tcp domain name are up to 200.
You can submit up to 50 amendments per month.
# 9. Small Program Business Domain Name:
For Mini Programs licensed to third parties, their business domain names can only be servers of third party platforms. When the Mini Program releases the code through a third party, the business domain name originally configured by the Mini Program will be deleted, and only the domain name of the third-party platform will be retained, so the third-party platform needs to call the interface to add the business domain name for the Mini Program before releasing the code instead of the Mini Program.
Note that you need to register the business domain name in the Mini Programs business domain name of the third-party platform before you can call the interface for configuration.
Support the configuration of subdomain names when configuring domain names for authorized Mini Programs, such as business domain names registered by third parties for Qq.com, you can directly qq.com And their sub-domains (such as Xxx.qq.com) is also configured to the authorized Mini Program.
Up to 200 business domain names can be added.
# 10. White List IP Address list
- Only when the developer's IP address is in the list, the relevant interface is allowed to be called. Fill in up to 100 IP addresses, separated by English ";". When there is a subsequent change of the export IP, it must be filled in the application information and cover the live network, otherwise it will be blocked.
# 11, cloud service model fill out instructions
- If you choose cloud development mode, you need to fill in the environment ID and cloud function name
- Among them, the environment ID refers to the environment under the Tencent cloud account bound by the current third-party platform, and the existing environment ID list can be obtained through the interface.https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/cloudbase/batch/describeenvs.html
- And, a list of current cloud functions can be obtained through the interfacehttps://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/cloudbase/batch/Getscflist.html
# 12. Other Supplements
- Note that for all completed and valid applications The URL needs to be done once. echo Checksum to determine the url Is effectively connectable. This is different from the ordinary Official Account message template Development mode url Check in the same way, just use the Token For the Service Party token。Please click