Last Updated on : 2024-06-24 03:44:08download
Tuya Developer Platform opens up a variety of API services to meet different requirements. For example, the following services can be implemented: smart home management, industry general device and user management, open capabilities of vertical categories, and various data services. This topic describes how to subscribe to API services and authorize projects to call API operations.
Some API calls require access to users’ personal data. Therefore, you are obliged to formulate a personal data privacy statement in accordance with your local laws or regulations and take adequate measures to ensure that users’ privacy is fully protected.
Subscribe to the desired APIs. For more information about APIs, see Cloud Services API Reference.
During the project creation process, certain API services that support the specified development method are selected on the Tuya Developer Platform by default. For more information, see the section Create a project in Manage Projects.
Log in to the Tuya Developer Platform.
Choose Cloud > Cloud Services.
On the My Service page, search for and subscribe to your desired cloud services.
On the page of My Service, click Free Trial.
On the Free Trial page, click Continue to subscribe to the services.
After you try out and debug the APIs, you can subscribe to a resource pack to enjoy more services.
Choose Cloud > Cloud Services.
On the My Service page, search for and subscribe to official cloud services that require a paid subscription.
Take IoT Core for example. Click Subscribe to Resource Pack on the details page of the specific service, and select the desired edition.
On the product details page (such as IoT Core), select the API service edition that you want to subscribe to, and click Buy Now.
On the details page of API services, you can find My Subscriptions, API List, and Authorized Projects.
Log in to the Tuya Developer Platform.
Choose Cloud > Cloud Services.
On the My Service page, search for and subscribe to your desired cloud services.
Click View Details in the Operation column to enter the details page. You can find My Subscriptions, API List, and Authorized Projects of the specified cloud service.
For more information about Tuya’s open APIs, see Cloud Services API Reference.
Tuya provides two methods to help you manage APIs and project authorization.
Go to Cloud > Development, select a project, and click Open Project in the Operation column to enter the details page.
Select the Service API tab and click Go to Authorize.
Select the cloud service as you want and authorize the project to access this cloud service.
Click OK to complete authorization.
On the page of Cloud Services, select an API service and click View Details in the Operation column.
Select the Authorized Projects tab and click Add Authorization.
On the API Authorization page, select one or more cloud projects to be authorized.
Click Confirm Authorization to complete authorization.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback