我运行的代码返回以下错误:
拒绝访问
当我尝试使用S3浏览器获取内容时,它会显示支付访问权限的警报,然后我可以访问该内容。如何设置接受付费访问的请求?
string accessKey = "******";
string secretKey = "******";
AmazonS3Config config = new AmazonS3Config();
config.ServiceURL = "https://s3.amazonaws.com";
AmazonS3Client s3Client = new AmazonS3Client(accessKey, secretKey, config);
ListObjectsRequest request = new ListObjectsRequest();
request.BucketName = "******";
ListObjectsResponse response = s3Client.ListObjects(request);
警报表格S3浏览器: