Is there a way to get a user's friends?
The friends method Returns up to 100 of the authenticating user's friends who have most recently updated, each with current status inline. It's also possible to request another user's recent friends list via the id parameter below. but this method does not provide an easy way to get all my friends, regardless of when they last updated their status. Thanks, Lien
Re: Is there a way to get a user's friends?
You can page through that method to get all of your friends. On Wed, Dec 10, 2008 at 18:02, Lien Tran [EMAIL PROTECTED] wrote: The friends method Returns up to 100 of the authenticating user's friends who have most recently updated, each with current status inline. It's also possible to request another user's recent friends list via the id parameter below. but this method does not provide an easy way to get all my friends, regardless of when they last updated their status. Thanks, Lien -- Alex Payne - API Lead, Twitter, Inc. http://twitter.com/al3x
Re: Is there a way to get a user's friends?
When you no longer get any User objects in the response. On Wed, Dec 10, 2008 at 18:08, Lien Tran [EMAIL PROTECTED] wrote: The problem is that I hit the rate limit error very easily when I do this. How do I know when I got all my friends and when to stop paging? On Dec 10, 6:06 pm, Alex Payne [EMAIL PROTECTED] wrote: You can page through that method to get all of your friends. On Wed, Dec 10, 2008 at 18:02, Lien Tran [EMAIL PROTECTED] wrote: The friends method Returns up to 100 of the authenticating user's friends who have most recently updated, each with current status inline. It's also possible to request another user's recent friends list via the id parameter below. but this method does not provide an easy way to get all my friends, regardless of when they last updated their status. Thanks, Lien -- Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x -- Alex Payne - API Lead, Twitter, Inc. http://twitter.com/al3x
Re: Is there a way to get a user's friends?
yeah, it is very easy to page through... the only thing that worried me was when doing a delete operation and not really knowing for sure if the number of friends was correct. i don't think the api returns 'how many friends' (but maybe my memory is faulty) - the thing i was worried about is if you decided to turn off the server and change the spark plugs, or some other act of god while the script was going through the pages of friends. waitman On Dec 10, 6:10 pm, Alex Payne [EMAIL PROTECTED] wrote: When you no longer get any User objects in the response. On Wed, Dec 10, 2008 at 18:08, Lien Tran [EMAIL PROTECTED] wrote: The problem is that I hit the rate limit error very easily when I do this. How do I know when I got all my friends and when to stop paging? On Dec 10, 6:06 pm, Alex Payne [EMAIL PROTECTED] wrote: You can page through that method to get all of your friends. On Wed, Dec 10, 2008 at 18:02, Lien Tran [EMAIL PROTECTED] wrote: The friends method Returns up to 100 of the authenticating user's friends who have most recently updated, each with current status inline. It's also possible to request another user's recent friends list via the id parameter below. but this method does not provide an easy way to get all my friends, regardless of when they last updated their status. Thanks, Lien -- Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x -- Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x