Quantcast
Channel: Telerik Blogs
Viewing all articles
Browse latest Browse all 5210

How To: Twitter search with RadGridView for Silverlight and Twitter REST API

$
0
0

I’ve made small demo application on how to search Twitter using Twitter REST API and RadGridView for Silverlight
TwitterSearch

To download Twitter ATOM response you can use simple WebClient:

if (!String.IsNullOrEmpty(TextBox1.Text))
{
    WebClient client = new WebClient();
    client.DownloadStringCompleted += newDownloadStringCompletedEventHandler(client_DownloadStringCompleted);
    if(!client.IsBusy)
        client.DownloadStringAsync(new Uri(String.Format(urlFormat, TextBox1.Text, pageSize, currentPageIndex)));
}

and you can parse the response using XDocument.Parse() method:

XNamespace atomNamespace = "http://www.w3.org/2005/Atom";
RadGridView1.ItemsSource = from item in...


Viewing all articles
Browse latest Browse all 5210

Trending Articles