How do I use Xamarin with Wasabi?

Xamarin is a mobile application development platform for Android, iOS and Windows. The AWS Transfer Utility can be used in your Xamarin application to connect to Wasabi.  A Xamarin application can be developed either on Visual Studio or Xamarin Studio.

Instructions to get started:

1) Download Visual Studio

2) Download and install the AWS Toolkit for Visual Studio

3) Below is a sample code to download a file from Wasabi bucket: 

using Amazon.S3;
using Amazon.S3.Model;
using Amazon.S3.Util;

namespace s3.amazon.com.docsamples
{
class downloadFile
{

public static void Main(string[] args)
{
AmazonS3Config s3Config = new AmazonS3Config();
s3Config.ServiceURL = "https://s3.wasabisys.com";
s3Config.RegionEndpoint = Amazon.RegionEndpoint.USEast1;
var accessKey = "<wasabi-access-key>";
var secretKey = "<wasabi-secret-key>";

var s3Client = new AmazonS3Client(accessKey, secretKey, s3Config);
var transferUtility = new Amazon.S3.Transfer.TransferUtility(s3Client);

transferUtility.Download("<local-path-for-file-download>",
"<bucket-name>",
"<Object-name-to-download>");

}

}
}

Note that this example discusses the use of Wasabi's us-east-1 storage region. To use other Wasabi storage regions, please use the appropriate Wasabi service URL as described in this article

Have more questions? Submit a request