The following example is an application called SilverTwit that
exposes some of the most-used features of the Twitter API in a
Silverlight 2 client application. SilverTwit pools many of the topics
we’ve discussed in this book to build a Silverlight 2 client interface
that uses data-binding techniques, builds a RESTful service, invokes
remote web service calls asynchronously, uses type converters, handles
cross-domain invocation, and sends
POST requests, among many other features. This
section will go over the architecture of the application and jump into
the details of its highlights. The full source code for the SilverTwit
solution is located in the code for this chapter. SilverTwit exposes only some of the most
commonly used features of the Twitter RESTful API. You can easily expand
it to encompass many of the Twitter API features by extending the source code.
The SilverTwit solution is included in this chapter’s code samples. To run this code, you must first change the constants’ values at the top of the Page.xaml.cs file to use your Twitter credentials.
The SilverTwit application has two major components, shown in Figure 9-6. The user interface is represented with a Silverlight 2 client application. It handles all interaction with the user and presents the data from the web services. It also communicates directly with the SilverTwit REST-friendly web services component. The Twitter API requires that credentials be passed ...