Skip to content

Commit 2727497

Browse files
authored
Update README.rst
Token
1 parent d7e8105 commit 2727497

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ __________
2929
secret_id = u'xxxxxxxx' # 替换为用户的secret_id
3030
secret_key = u'xxxxxxx' # 替换为用户的secret_key
3131
  region = "cn-north"       # 替换为用户的region,目前可以为 cn-east/cn-south/cn-north/cn-southwest,分别对应于上海,广州,天津,西南园区
32-
config = CosConfig(Appid=appid, Region=region, Access_id=secret_id, Access_key=secret_key) #获取配置对象
33-
client = CosS3Client(config) #获取客户端对象
32+
   config = CosConfig(Appid=appid, Region=region, Access_id=secret_id, Access_key=secret_key, Token='')  #获取配置对象 使用临时秘钥需要传入Token,默认为空
33+
   client = CosS3Client(config)                                                               #获取客户端对象
3434
3535
############################################################################
3636
# 文件操作 #

0 commit comments

Comments
 (0)