Jump to content

Twitter API Social Graph Method Reference

0
  kmakice's Photo
Posted Oct 29 2009 10:15 AM

Get All Friends

Returns the full list of people you follow.

Path

/friends/ids.xml

Requires authentication

Yes, if the account is private (authenticating user must be allowed by the author to view the list of friends).

Charged against rate limit

Yes.

HTTP method type

GET.

Optional parameters

 
 

id

Indicates the user ID or username of the Twitter account whose following list you want to view. The id parameter is passed as part of the URL request: /friends/ids/id.xml.

Successful output

See the section called “The Follow Network”.


Get All Followers

Returns the full list of people who follow you.

Path

/followers/ids.xml

Requires authentication

Yes (authenticating user must be allowed by the author to view a private list of followers).

Charged against rate limit

Yes.

HTTP method type

GET.

Optional parameters

 
 

id

Indicates the user ID or username of the Twitter account whose follower list you want to view. The id parameter is passed as part of the URL request: /followers/ids/id.xml.

Successful output

See the section called “The Follow Network”.

Twitter API: Up and Running

Learn more about this topic from Twitter API: Up and Running.

This groundbreaking book provides you with the skills and resources you need to build web applications for Twitter. Perfect for new and casual programmers intrigued by the microblogging, Twitter API: Up and Running carefully explains how each part of Twitter's API works, with detailed examples that show you how to assemble those building blocks into practical and fun web applications.

See what you'll learn


0 Replies