Skip to Content
Twitter API: Up and Running
book

Twitter API: Up and Running

by Kevin Makice
March 2009
Beginner to intermediate
414 pages
12h 30m
English
O'Reilly Media, Inc.
Content preview from Twitter API: Up and Running

Appendix A. Twitter API Reference

Don’t have time to reread all the prior poetry about the Twitter API? Fine. Here’s a methods cheat sheet that gives you the basics you will need to program your Twitter application. The hierarchy listed here is based on the server paths used by Twitter—the technical order, based on path and method name—rather than the functional groups I used in Chapter 4 of this book.

Twitter tracks two kinds of rate limits: one for unauthenticated requests (which is not possible for the methods that require authentication), and the other for requests made per account when authentication is used. POST method requests, used whenever you need to make a change to the server, don’t cost anything. There are also a few methods that are exempt from the rate limit.

For more information on the current nuances of using the API, check out the Twitter API FAQ.

Note

In this appendix, I use the .xml format to describe the methods. Remember, you can substitute .json for all of the Twitter API methods and .atom or .rss for some of them.

Status Methods

Delete a Tweet

Removes a single status update from the Twitter timeline.

Path

/statuses/destroy/id.xml

Requires authentication

Yes (the account owns the existing update).

Charged against rate limit

No.

HTTP method type

POST or DELETE.

Required parameters

 
 

id

Provides the record ID for an existing status update owned by the authenticating user. The id parameter is passed as part of the URL request.

Successful output

See Publishing.

View Followers

Returns ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Sams Teach Yourself the Twitter API in 24 Hours

Sams Teach Yourself the Twitter API in 24 Hours

Christopher Peri, Ben Ho, Jon Wu, Chia Hwu

Publisher Resources

ISBN: 9780596157777Errata Page