Skip to content

Commit

Permalink
fix: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
livehigh committed Jul 8, 2024
1 parent dfc08e3 commit b91b9e9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,16 @@ const Bucket = 'test-1250000000';
// 关于地域的详情见 https://cloud.tencent.com/document/product/436/6224
const Region = 'ap-guangzhou';
// 初始化实例
// 初始化实例,详情参考:https://cloud.tencent.com/document/product/436/11459
// 1、方式一:传入临时密钥
const cos = new COS({
SecretId: 'your_tmpSecretId',
SecretKey: 'your_tmpSecretKey',
SecurityToken: 'your_sessionToken',
});
// 2、方式二:传入获取临时密钥回调
const cos = new COS({
// getAuthorization 必选参数
getAuthorization: function (options, callback) {
Expand Down

0 comments on commit b91b9e9

Please sign in to comment.