We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfc08e3 commit b91b9e9Copy full SHA for b91b9e9
README.md
@@ -38,7 +38,16 @@ const Bucket = 'test-1250000000';
38
// 关于地域的详情见 https://cloud.tencent.com/document/product/436/6224
39
const Region = 'ap-guangzhou';
40
41
-// 初始化实例
+// 初始化实例,详情参考:https://cloud.tencent.com/document/product/436/11459
42
+
43
+// 1、方式一:传入临时密钥
44
+const cos = new COS({
45
+ SecretId: 'your_tmpSecretId',
46
+ SecretKey: 'your_tmpSecretKey',
47
+ SecurityToken: 'your_sessionToken',
48
+});
49
50
+// 2、方式二:传入获取临时密钥回调
51
const cos = new COS({
52
// getAuthorization 必选参数
53
getAuthorization: function (options, callback) {
0 commit comments