I stumbled across the Gallery.NET Toolkit on Twitter, while I should have been doing something more useful; some great work from @rmaclean (thanks for sharing / codeplexing it).
The API wraps up a lot of the Gallery2 remote services into some easy to use C# functions.
[codesyntax lang=”csharp”]Actions a = new SADev.Gallery2.Protocol.Actions(“http://www.blakepics.com”);
string authToken = a.Login(“*************”, “*************”).AuthToken;
a.FetchAlbums(authToken).Albums.ForEach(
album =>
{
Console.WriteLine(album.Title);
a.FetchImages(authToken, album.Name).Images.ForEach(image =>
Console.WriteLine(“\t” + image.Url)
);
}
);
Console.ReadKey();[/codesyntax]
Hopefully I’ll find an excuse to use this one day.