# Introduction
To better help affiliate developers improve promotion efficiency, the small app league has opened the management interface for promotion spots, affiliate products, and affiliate orders, and developers can implement related tools by invoking the interface.
# Development Preparation
I. Getting Interface Permissions
Sign up for an affiliate Twitter account 1). Go toThe official website of the league's TwitterersUse WeChat to scan the QR code on the page and choose to register an account 2). Read the electronic protocol, enter the account name and complete the registration process 3). Refresh the page of the affiliated Twitter official website, use WeChat to scan the page QR code, select the account you have registered to log in.
Authenticate League Twitter accounts 1). Follow the page prompts to enter the account authentication process, submit the subject information, business license information, legal person information, administrator information, and settlement bank account information for authentication 2). Detailed certification processes and guidelines can be foundTwitter Access Guidelines 3). After the authentication is passed, the interface invocation permissions are automatically obtained.
II. Get the interface invocation certificate (access_token)
- Log in to the Union Push Guest Management Background, click on the left navigation bar [account settings], get Push Guest account appID and appsecret(Appsecret need account supermanager WeChat scan code to get)
- Call the interface, through the appID and appsecret access to the interface call credentials, click to view[Credential acquisition interface documentation](https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken .html)。
III. View the documentation for the Mini Program federation interface
NOTE: POST
Requests must be made atHTTP RequestHeader
Settings in the middlecontent-type: application/json
Interface Name | Introductions |
---|---|
[Get the list of affiliate product categories and category ID](./product/category.md#1. Get the list of affiliate product categories and category ID) | Through the interface to get the first class list of the alliance goods and category ID |
[Check out full quantity product details](./product/category.md#2. Check out full quantity of items) | Supports developers to obtain information about the full amount of affiliate products. Supports filtering according to item keywords (name, store, spuID), item prices, item commissions, commission ratios, and whether affiliate coupons exist |
[Check out the league's selection of products](./product/category.md#3. Check out the league's selection of products) | Supports developers to obtain information on selected affiliate items (up to 50 items at a time), and supports screening based on item prices, item commissions, commission ratios, and whether affiliate coupons exist |
[Get merchandise promotional materials](./product/category.md#3. Get merchandise promotional materials) | Through the interface to obtain the promotion of goods material, including shop appID, product details page Path, promotion copy and promotion short chain, product pictures, product Mini Program code, etc. |
[Add promotional space](./promotion.md#1. Add promotional space) | Add a promotional space through this interface |
[Delete promotional space](./promotion.md#2. Delete promotional space) | When you delete a promotional bit through this interface, a commission may still be generated after the promotional bit is deleted |
[Edit Promotional Area](./promotion.md#3. Edit Promotional Area) | Edit a promotional bit name through this interface |
[Get a list of promotional spots](./promotion.md#4. Get a list of promotional spots) | Get the name and ID of the existing extension bit through this interface |
Check the order details | Filter order details by order ID, order status, order payment time |