There’s not many libraries out there that helps you get started writing Win8 .NET XAML metro apps for twitter so I decided to take my FlickrWinRT library and turn that into a Twitter library (called TwitterWinRT).
It’s very simple and only has 4 twitter api’s wired up BUT it uses Async/Await pattern for all calls and does the OAuth stuff.
It also uses JSON serialization/deserialization instead of xml which is what I used in the FlickrWinRT library.
Also I haven’t been able to get any good sample code on how to use WebAuthenticationBroker, that’s the only thing missing here. I really wanted to use that class BUT am unable to work out how to do it, any help or .net sample code would be much appreciated . For now it uses the traditional approach to OAuth.
Picture explanation of what it does
1. Run the demo metro style app
2. Request Token (click ‘Request authorization’)
3. Take the provided ‘Token’ and use it to authorize the app for use by your account.
4. Once app is authenticated for use we make 2 simple calls to
a) retrieve user information
b) retrieve home timeline
Here is the sample code
Make sure to set the “TwitterMetroTest” as the startup project
Also make sure to fill in you API app key and secret key
Go forth and start making really cool .NET Metro style apps!!!!