Tuesday, June 25, 2013

Scott (not that Scott) helps make your Live dev easier with the LiveSDKHelper

Metro Nuggets - Belatedly Introducing LiveSDKHelper

while back I was working on a project that allowed me to actually look at, and use, the Live SDK in order to access information on SkyDrive. I was surprised to find just how hard it was to use the Live SDK, so as part of building the main project, I also built a little helper for using the Live SDK.

The Solution

So what is the LiveSDKHelper? Well basically, it’s a collection of classes, enums and strings that just take the chore out of using the Live SDK. It’s a portable class library that works with both Windows Phone (7.5 and 8) and Windows 8. But you probably assumed that, right!

Onto some code! In Windows Phone, as part of the Live SDK, we are given a signin button control that we can use to enable our end users to sign into their Microsoft Account. This button requires you to give it some scopes so the user knows exactly what information your app wants to access. This is the first part of the helper:


Again, this just makes it so much easier to deal with. And there’s plenty more to explore. At the moment, the library covers SkyDrive, Calenders and contacts.

If you want to give it a go, it’s installable from nuget.

The source for it is all on GitHub, and if you want to see an app using it, check out Store Card Buddy.


Been a while since I've highlighted Scott Lovegrove's dev work and I thought this pretty cool (and something I'm going to want to use in the near future)

No comments: