Project and Credential
Project and Credential are important configuration for QWeather API, this document will introduce how to set up them.
Project
Project is the container for QWeather API, which can also be understood as a product you need to develop, such as a “travel app” or a “graduation design”.
Create Project
- Go to Console - Project, and click the “Create Project” button.
- Set Project name, Project name can be up to 20 characters. You can modify the name later.
- Select Subscription. If you choose Standard subscription, please ensure that your balance is ≥ ¥10.
- Click “Create” button.
Delete Project
Warning: The deletion action is irrevocable, the Project and all credentials in this Project will be permanently deleted, and you can no longer use this Project and credentials for API authentication.
- Click “Edit” button on the Project section.
- Click “Delete” button.
- Enter the name of the Project and click “Delete” button to complete the deletion, or click the “Cancel” button to terminate the deletion.
Credential
Credentials are used for API authentication, which include the Ed25519 key (for JWT authentication) and the API KEY. We recommend creating separate credentials for various usage scenarios, such as “For Website” or “Test Only”. Learn more about API Security Guidelines and API Authentication.
Add Credential
- Go to Console - Project and select any Project you want to add credentials to
- Click the “Add Credential” button on the Credentials section.
- Select authentication method, we recommend JWT for higher level security. See JWT and API KEY.
- Set credential name.
- Click “Create” button.
Setup restrictions
You can restrict the use of credentials to higher levels of security. See Security Restrictions.
Delete credential
Warning: The deletion is irrevocable, and you can no longer use this credential for API authentication.
- Select the KEY you want to delete.
- Click “Delete” button.
- Enter the name of the KEY and click “Delete” button to complete the deletion, or click the “Cancel” button to terminate the deletion.
Other rules
- Up to 10 Projects can be created.
- Up to 20 Credentials can be added to each Project.