Here’s my Twitter library to get you quickly building WinRT Xaml.Net apps (TwitterWinRT)


image

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 Smile . For now it uses the traditional approach to OAuth.

Video demo

TwitterWinRT library for building Win8 .Net metro style apps

 

Picture explanation of what it does

 

1. Run the demo metro style app

image

2. Request Token (click ‘Request authorization’)

image

3. Take the provided ‘Token’ and use it to authorize the app for use by your account.

image

4. Once app is authenticated for use we make 2 simple calls to

a) retrieve user information

b) retrieve home timeline

image

 

Here is the sample code

 

Make sure to set the “TwitterMetroTest” as the startup project

image

Also make sure to fill in you API app key and secret key

image

 

 

Go forth and start making really cool .NET Metro style apps!!!!

4 responses to “Here’s my Twitter library to get you quickly building WinRT Xaml.Net apps (TwitterWinRT)

  1. Pingback: Here’s my Twitter library to get you quickly building WinRT Xaml.Net apps (TwitterWinRT) | Silverlight and other cool things …

  2. Downloaded, updated the app keys, tested – works great!

    The sample app is just a sample, so it is a bit limited, but that is nothing going through some twitter documentation and XAML crafting can’t fix, so I sense a fun weekend with your libraries ahead of me! :)

  3. Everything works really well. The only problem that I have is I can’t update the status… I keep getting 401 unauthorized return like something in the signature isn’t building correctly. All of the gets work great! any ideas?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s