- Documentation
Torch Object Storage
Best Practices
Accessing TOS with third-party tools
Accessing TOS with Flutter SDK
Accessing TOS with third-party tools
Accessing TOS with Flutter SDK
Accessing TOS with Flutter SDK
The TOS Flutter SDK is now available on pub.dev. Use it to access TOS and upload or download your data. This topic uses Android Studio as an example to explain how to access TOS with Flutter SDK.
- Set up long-term access credentials locally.
Follow these steps to configure long-term access credentials on macOS.
- Open Terminal and run this command to open the file.
- Add your access key ID and secret access key at the end of the file.
- Run this command to apply the configuration.
- Run this command to verify the configuration.
- The following output confirms a successful configuration.
Follow these steps to configure long-term access credentials on Linux.
- Open Terminal and run this command to open the file.
- Add your access key ID and secret access key at the end of the file.
- Run this command to apply the configuration.
- Run this command to verify the configuration.
- The following output confirms a successful configuration.
Follow these steps to configure long-term access credentials on Windows.
- Open the command line interface and run this command to enter your access key ID and secret access key.
- Run this command to apply the configuration.
- Restart the command line interface and run this command to verify the configuration.
- The following output confirms a successful configuration.
- Run this command to install the TOS Flutter SDK.
tip
For more information on the TOS Flutter SDK, see tos package. - Access TOS with Flutter SDK.
- Replace region and endpoint with the actual region and endpoint in the code below, and then run it.
tip
When setting the endpoint parameter, add https:// before the domain name. For example: https://tos-cn-beijing.volces.com. For more information on endpoints, see Regions and endpoints. A returned bucket name confirms a successful access operation.
You can consult the API documentation to write your own code for tasks such as creating buckets and deleting objects. For more API documentation on the TOS Flutter SDK, see tos library. Last updated: 2026.10.12 14:16:23