private static void TestGuestUpload()
{
// create the API
MinusApi api = new MinusApi(API_KEY);
CreateGalleryResult galleryCreated = null;
api.SignInComplete += delegate(MinusApi sender, SignInResult result)
{
api.CreateGallery(result.CookieHeaders);
};
api.CreateGalleryComplete += delegate(MinusApi sender, CreateGalleryResult result)
{
// gallery created, trigger upload of the first file
galleryCreated = result;
Console.WriteLine("Gallery created! " + result);
Thread.Sleep(1000);
Console.WriteLine("Uploading files...");
//api.UploadItem(result.EditorId, result.Key, items[0]);
};
// this is the call that actually triggers the whole program
api.SignIn();
}