KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
tencent_cos
★ 22
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
irrigation-unlimited-card
:
A companion card for the Irrigation Unlimited integration
ubuntu-termux
:
Install Ubuntu on Android using Termux, no need for root. Develop software using the Ubuntu distribution on your android without the need for root and install software maintained by Canonical.
Tsp-Wan-Android
:
learn jetpack, coding
Hack-Rubika
:
No description available.
maotao_second
:
茅台秒杀
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
tencent_cos
?
Download (.md)
## Getting started ## 添加依赖 ```yaml dependencies: tencent_cos: ^1.0.7 ``` flutter 版本的插件腾讯cos插件,不依赖原生插件.参考:https://cloud.tencent.com/document/product/436/7749 如果可以麻烦右上角给点个like吧 ## 使用方法 支持putObject deleteObject listObject三方方法,具体参考cos文档 ```dart //如果后台采用临时秘钥这里需要传入值,不然403错误,如果永久秘钥写在客户端,token可以不传入 String token = ""; //本地的file String localPath = ""; //cos路径 String cosPath = "abc/123.png"; await COSClient(COSConfig( credentials["secretId"], credentials["secretKey"], credentials["bucketName"], credentials["region"], )).putObject(cosPath, localPath, token: token); ``` ## Additional information 具体参考:https://cloud.tencent.com/developer/article/1878729