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 ...

Get Sams Teach Yourself the Twitter API in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.