You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> import oss2
>>> auth = oss2.Auth('your-access-key-id', 'your-access-key-secret')
>>> bucket = oss2.Bucket(auth, 'http://oss-cn-hangzhou.aliyuncs.com', 'your-bucket')
>>> bucket.put_object('readme.txt', 'content of the object')
<oss2.models.PutObjectResult object at 0x029B9930>
In this example. can I Instantiate a bucket once and use it all the time. like this. and when the auth is sts auth. Thanks
>>> bucket = oss2.Bucket(auth, 'http://oss-cn-hangzhou.aliyuncs.com', 'your-bucket')
>>> bucket.put_object('readme1.txt', 'content of the object')
>>> bucket.put_object('readme2.txt', 'content of the object')
>>> bucket.put_object('readme3.txt', 'content of the object')
The text was updated successfully, but these errors were encountered:
In this example. can I Instantiate a bucket once and use it all the time. like this. and when the auth is sts auth. Thanks
The text was updated successfully, but these errors were encountered: