Book Image

Windows Phone 7.5 Data Cookbook

By : Ramesh Thalli
Book Image

Windows Phone 7.5 Data Cookbook

By: Ramesh Thalli

Overview of this book

Windows Phone 7.5 Mango contains support for apps written in Silverlight or XNA. These apps can store data on the device, and also load and manipulate data from "the cloud" and other web services.This Windows Phone 7.5 Data Cookbook has a range of recipes to help you apply data handling concepts. You will be able to apply the knowledge gained from these recipes to build your own apps effectively. This Windows Phone 7.5 Data Cookbook starts with data binding concepts at the UI layer and then shows different ways of saving data locally and externally in databases. The book ends with a look at the popular MVVM software design pattern. The recipes contained in this book will make you an expert in the areas of data access and storage.
Table of Contents (15 chapters)
Windows Phone 7.5 Data Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Using the Twitter API


In this recipe, let's build a Twitter client app using the Twitter API. This is similar to the previous RSS reader recipe. Here, instead of RSS format you will receive the custom XML format related to the Twitter username or screen name.

Getting ready

First study the Twitter API resource page at:

https://dev.twitter.com/docs/api

There are many categories of API available such as Timelines, Tweets, Search, and so on. We will be using statuses/user_timeline for a given user in this recipe.

How to do it...

In the next steps, we will create a client application, which will have a textbox to search for a name and return the latest updates for that username.

  1. Open a new project and create a new Phone 7 Application with the name Recipe2_TwiitterClient.

  2. Right-click on the project folder and add a new class to the TwitterFeed.cs file. Open the file and add the new class to store the Twitter feed information. We will have one string variable called Content:

    public class TwitterFeed
    ...