from src.ossConfig import ossConfig
import unicloud_oss.Oss as Oss access_key = 'XXXXXXXXX' secret_key = 'XXXXXXXXXXXXXXXXXXX' endpoint_url = 'http://XXXXXXXXXXXXXXXXX.com' config = ossConfig(access_key,secret_key,endpoint_url) bucket_name = 'test1' bucket_acl = Oss.get_bucket_acl(config, bucket_name) if bucket_acl is None: print('Error!') else: print(f' {bucket_acl["Grants"]}') |