using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Amazon; using Amazon.S3; using Amazon.S3.Model; namespace ProvaS3 { class Program { static void Main(string[] args) { string accessKey = "****"; string secretKey = "****"; AmazonS3Config config = new AmazonS3Config(); config.ServiceURL = "http://bvmld-osgw-101.ciberterminal.net"; config.UseHttp = true; config.SignatureVersion = "2"; //config.ForcePathStyle = true; AmazonS3Client s3Client = new AmazonS3Client( accessKey, secretKey, config ); ListObjectsRequest request = new ListObjectsRequest(); request.BucketName = "ciberpay-reporting"; ListObjectsResponse response = s3Client.ListObjects(request); foreach (S3Object o in response.S3Objects) { Console.WriteLine("{0}\t{1}\t{2}", o.Key, o.Size, o.LastModified); } } } }