O'Reilly logo

Sams Teach Yourself the Twitter API in 24 Hours by Chia Hwu, Jon Wu, Ben Ho, Christopher Peri

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 7. Creating a Twitter API Framework

What You’ll Learn in This Hour:

What are Twitter API parameters?

How to create an API function for Twitter method calls

Twitter API Parameters

In Hour 6, “Building a Simple Twitter Reader,” we created a simple Twitter reader application. There are some shortcomings, however. Remember that we had to manually create the API call to the Twitter servers.

Here is the line just to remind you:

$name = 'http://api.twitter.com/1/statuses/user_timeline/BREAKINGNEWS.xml';

We created the API call, the value BREAKINGNEWS, and the return type .xml manually in one line. However, to make our system more useful, we need a better way to create this API call. In addition, we need a more dynamic framework for the various ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required