Add features
Features serve as an authorization mechanism that controls access to specific JSAPIs and open APIs. To ensure successful API calls, mini-program developers must add the corresponding features to their mini programs. This topic guides mini-program developers to add a feature in Mini Program Platform.
Before you begin
Before you begin, obtain the name of the feature that you need to add. Usually, you can find this information in the specifications of the APIs you plan to use.
Procedures
Refer to one of the following guides according to your workspace type:
For tenant workspaces
For tenant workspaces, only Workspace Admin can add a feature to mini programs by completing the following steps:
- Log into Mini Program Platform and navigate to Mini Programs > Wallet.
- Find and click the name of the mini program to which you need to add a feature.
- Click the Features tab and then + Add Feature. Select the appropriate feature and click Add. Then, the added feature is shown in the feature list and your mini program can access all the associated APIs.
For developer workspaces
For developer workspaces, only Owner and Master can add a feature to mini programs by completing the following steps:
- Log into Mini Program Platform and navigate to Mini Programs > Manage Mini Programs.
- Find and click the specific mini program to which you need to add a feature.
- Click the Features tab and then + Add Feature. Select the appropriate feature and click Add. Then, the added feature is shown in the feature list and your mini program can access all the associated APIs.