Re: Fetching user_timeline on twitter

2009-02-03 Thread Deepak

I am also using APi to develop my application. I am facing a problem
with the protected user. If user protect their updates on the Twiiter
Site. I am unable to get the tweets of that person. Is there any way
to get that. Second i can't receive any notification that other person
has send you a request to foolow yon.

Thanks,

Deepak


On Feb 3, 10:31 am, dougw igu...@gmail.com wrote:
 Naveen,
 Storing user credentials is never ideal but with basic auth,
 applications that want to make occasional calls to the API must retain
 a local copy of the credentials. Each request to a credential-
 protected API method requires credentials for authentication.
 Obviously this is not ideal, but the current API model is session-
 less.

 Your second question is yes. It will be nice, won't it?

 @dougw

 On Feb 2, 11:52 am, Naveen naveen.s.sax...@gmail.com wrote:

  I have some basic questions (I am still learning this world) regarding
  fetching another user's timeline...

  1. If basic authentication is a must to get the feed for protected
  updates, then does that mean that a third party website that purports
  to fetch a user's timeline needs to store the user's id and password
  to repeatedly provide these parameters as part of basic auth while
  fetching the timeline? Is that what sites such as friendfeed do? Or is
  there a way to perform a one time login and then somehow use a user
  specific credential on a long term basis?

  2. When twitter moves to using oauth, will there be a way for other
  friend
  networks to continuously be able to fetch a twitter user's feed after
  first time Oauth based authorization by using the user specific token
  on a long-term basis?

  Naveen


How can I write a code to authenticate user to twitter.com?

2009-02-03 Thread mike.shinobi

Hi,

I knew my question would sound basic, silly but I don't know how to
authenticate a user using javascript. Could anyone help me, please? I
would really appreciate it.

Thank you very much,


PHP / Curl API failures

2009-02-03 Thread DoubleDutch

Hi,

On Sunday (1 Feb 2009) I embedded the following code in my website
(with appropraite variables set correctly):

  $url = 'http://twitter.com/statuses/
update.json';
  $curl_handle = curl_init();
  curl_setopt($curl_handle, CURLOPT_URL, 
$url);
  curl_setopt($curl_handle, 
CURLOPT_CONNECTTIMEOUT, 2);
  curl_setopt($curl_handle, CURLOPT_VERBOSE, 1);
  curl_setopt($curl_handle, CURLOPT_POST, 1);
  curl_setopt($curl_handle, CURLOPT_POSTFIELDS, 
status=
$message);
  curl_setopt($curl_handle, CURLOPT_USERPWD, 
$username:
$password);
  $buffer = curl_exec($curl_handle);
  curl_close($curl_handle);

Which worked fine up until Monday morning (02 Feb 2009, 10:00 GMT
ish). It then failed for about 24 hours. I started debugging it last
night and my PHP script was not getting any status code back on the
curl_exe line. Today (3 Feb) at about 08:00 it started working again
without me changing anything!

I post about 10 message an hour (no more!) so I shouldn't reach any
limits I guess. Can anyone suggest what is going on here ?

Thanks

DoubleDutch


Re: API problems?

2009-02-03 Thread Victor Tsen

Seems to be working now. It was a DNS issue on my shared hosting
server as I was unable to ping twitter.com. Not sure if the server is
on OpenDNS though.

On Feb 2, 10:59 pm, Cameron Kaiser spec...@floodgap.com wrote:
  Same here, for about ten hours I havent been able to curl updates to
  twitter - getting timelines from twitter seems ok though.

 With curl itself on this end, I'm getting normal response. Do you receive
 a specific error?

 --
  personal:http://www.cameronkaiser.com/--
   Cameron Kaiser * Floodgap Systems *www.floodgap.com* ckai...@floodgap.com
 -- We're Starfleet officers ... weird is just part of the job. -- ST: Voyager 
 -


Re: Test Method Failing

2009-02-03 Thread bill[y]

Thanks, Alex!

bill

On Feb 2, 4:52 pm, Alex Payne a...@twitter.com wrote:
 Yes, should be fixed today.



 On Mon, Feb 2, 2009 at 10:42, bill[y] vir...@gmail.com wrote:

  Hi there,

  Was a bug filed for this? Couldn't seem to find it ...

 http://twitter.com/help/test.xmlstill moved ... Any plans to fix it?

  thanks!
  bill

  On Jan 16, 6:58 pm, Alex Payne a...@twitter.com wrote:
  Ah. Our new support site may have clobbered this URL. Please file an
  issue here:http://code.google.com/p/twitter-api/issues/entry.

  On Fri, Jan 16, 2009 at 15:45, Eric Blair eric.s.bl...@gmail.com wrote:

   I'm getting a 301 error when Icallthetestmethod. I was usingtest
   as a check to see if Twitter was up before doing the bulk of my calls,
   so this threw my scripts for a bit of a loop.

  http://twitter.com/help/test.xml

   returns
   HTTP/1.1 301 Moved Permanently
   Date: Fri, 16 Jan 2009 23:44:50 GMT
   Server: Apache
   Location:http://help.twitter.com/
   Cache-Control: max-age=300
   Expires: Fri, 16 Jan 2009 23:49:50 GMT
   Vary: Accept-Encoding
   Content-Length: 232
   Connection: close
   Content-Type: text/html; charset=iso-8859-1

   !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
   htmlhead
   title301 Moved Permanently/title
   /headbody
   h1Moved Permanently/h1
   pThe document has moved a href=http://help.twitter.com/;here/
   a./p
   /body/html

   --Eric

  --
  Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x

 --
 Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x


RE: Fetching user_timeline on twitter

2009-02-03 Thread pronab bose

how can i star earning as i am new to this wolrl. pronab  e.mai- 
pronab...@hotmail.com Date: Tue, 3 Feb 2009 05:54:32 -0800 Subject: Re: 
Fetching user_timeline on twitter From: igu...@gmail.com To: 
twitter-development-talk@googlegroups.com   Hi Deepak, You will have to 1) 
have the credentials of a user that follows a user that has protected updates 
(friends_timeline) or 2) have the credentials of the protected user 
(user_timeline) to get access to their updates.  As for your second 
question, unfortunately no, there is no way to receive notification 
progamatically that a user has requested to follow you. Is this a deal killer 
to you? If you can better explain what you are trying to do, I can help you 
find a workaround.  @dougw  On Feb 3, 2:32 am, Deepak 
hrdeepa...@gmail.com wrote:  I am also using APi to develop my application. 
I am facing a problem  with the protected user. If user protect their updates 
on the Twiiter  Site. I am unable to get the tweets of that person. Is there 
any way  to get that. Second i can't receive any notification that other 
person  has send you a request to foolow yon.   Thanks,   Deepak  
 On Feb 3, 10:31 am, dougw igu...@gmail.com wrote:Naveen,   
Storing user credentials is never ideal but with basic auth,   applications 
that want to make occasional calls to the API must retain   a local copy of 
the credentials. Each request to a credential-   protected API method 
requires credentials for authentication.   Obviously this is not ideal, but 
the current API model is session-   less.Your second question is 
yes. It will be nice, won't it?@dougwOn Feb 2, 11:52 am, 
Naveen naveen.s.sax...@gmail.com wrote: I have some basic questions 
(I am still learning this world) regardingfetching another user's 
timeline... 1. If basic authentication is a must to get the feed for 
protectedupdates, then does that mean that a third party website that 
purportsto fetch a user's timeline needs to store the user's id and 
passwordto repeatedly provide these parameters as part of basic auth 
whilefetching the timeline? Is that what sites such as friendfeed do? 
Or isthere a way to perform a one time login and then somehow use a 
userspecific credential on a long term basis? 2. When twitter 
moves to using oauth, will there be a way for otherfriend
networks to continuously be able to fetch a twitter user's feed after
first time Oauth based authorization by using the user specific tokenon 
a long-term basis? Naveen
_
Find a better job. We have plenty. Visit MSN Jobs
http://www.in.msn.com/jobs

Re: How can I write a code to authenticate user to twitter.com?

2009-02-03 Thread Sylvain Munaut

Search google for cross domain posting using hidden iframes.

On Feb 3, 3:20 pm, pronab bose pronab...@hotmail.com wrote:
 me too having the same problen ,how can i write a code to authenticate user 
 to twitter.com?
  FROM : pronab...@hotmai.com Date: Tue, 3 Feb 2009 00:02:26 -0800 Subject: 
 How can I write a code to authenticate user to twitter.com? From: 
 mike.shin...@gmail.com To: twitter-development-talk@googlegroups.com   
 Hi,  I knew my question would sound basic, silly but I don't know how to 
 authenticate a user using javascript. Could anyone help me, please? I would 
 really appreciate it.  Thank you very much,
 _
 Plug in to the MSN Tech channel for a full update on the latest gizmos that 
 made an impact.http://computing.in.msn.com/


Re: Help with a twitter widget

2009-02-03 Thread Plizzo - MacThemes

Thank you so much chad. Now I only have one problem. I get a syntax
error at line 14 where this_bg_color is.

On 2 Feb, 21:52, Chad Etzel jazzyc...@gmail.com wrote:
 i have added some lines (marked by //new) that should accomplish what you 
 want.

 function twitterCallback2(obj) {
        var twitters = obj;
        var statusHTML = ;
        var username = ;

        var name = ;             //new
        var bg_arr = [];            //new
        bg_arr.push(#ddd);            //new
        bg_arr.push(#bbb);            //new

        for (var i=0; itwitters.length; i++){

                var this_bg_color = bg_arr[i % 2];            //new

                username = twitters[i].user.screen_name

                name = twitters[i].user.name            //new

                statusHTML += ('lispan style=background:' +
 this_bg_color + ';'+ name + ' said: '  + twitters[i].text+'/span
 a
 target=_blank style=font-size:85% href=http://
 twitter.com/'+username+'/statuses/'+twitters[i].id+''+relative_time
 (twitters[i].created_at)+'/a/li')             //new
        }
        document.getElementById('twitter_update_list').innerHTML =
 statusHTML;

 }

 -Chad

 On Mon, Feb 2, 2009 at 3:38 PM, Plizzo - MacThemes

 plizzo.t...@gmail.com wrote:

  function twitterCallback2(obj) {
         var twitters = obj;
         var statusHTML = ;
         var username = ;
         for (var i=0; itwitters.length; i++){
                 username = twitters[i].user.screen_name
                 statusHTML += ('lispan'+twitters[i].text+'/span a
  target=_blank style=font-size:85% href=http://
  twitter.com/'+username+'/statuses/'+twitters[i].id+''+relative_time
  (twitters[i].created_at)+'/a/li')
         }
         document.getElementById('twitter_update_list').innerHTML =
  statusHTML;
  }

  function relative_time(time_value) {
   var values = time_value.split( );
   time_value = values[1] +   + values[2] + ,  + values[5] +   +
  values[3];
   var parsed_date = Date.parse(time_value);
   var relative_to = (arguments.length  1) ? arguments[1] : new Date
  ();
   var delta = parseInt((relative_to.getTime() - parsed_date) / 1000);
   delta = delta + (relative_to.getTimezoneOffset() * 60);

   if (delta  60) {
     return 'less than a minute ago';
   } else if(delta  120) {
     return 'about a minute ago';
   } else if(delta  (60*60)) {
     return (parseInt(delta / 60)).toString() + ' minutes ago';
   } else if(delta  (120*60)) {
     return 'about an hour ago';
   } else if(delta  (24*60*60)) {
     return 'about ' + (parseInt(delta / 3600)).toString() + ' hours
  ago';
   } else if(delta  (48*60*60)) {
     return '1 day ago';
   } else {
     return (parseInt(delta / 86400)).toString() + ' days ago';
   }
  }

  
  I have this code which I use to fetch the friends_timeline. I want to
  add so that you can see who sent the tweet like Matt said: and also
  I want to have backgrounds alternating between every post. Like having
  first one light grey background and the second tweet having a darker
  one. Is this possible, I would require help with this as I have been
  tinkering with it for days. Any help is appreciated

  Regards // Jonathan


Re: Fetching user_timeline on twitter

2009-02-03 Thread dougw

Hi Deepak,
You will have to 1) have the credentials of a user that follows a user
that has protected updates (friends_timeline) or 2) have the
credentials of the protected user (user_timeline) to get access to
their updates.

As for your second question, unfortunately no, there is no way to
receive notification progamatically that a user has requested to
follow you. Is this a deal killer to you? If you can better explain
what you are trying to do, I can help you find a workaround.

@dougw

On Feb 3, 2:32 am, Deepak hrdeepa...@gmail.com wrote:
 I am also using APi to develop my application. I am facing a problem
 with the protected user. If user protect their updates on the Twiiter
 Site. I am unable to get the tweets of that person. Is there any way
 to get that. Second i can't receive any notification that other person
 has send you a request to foolow yon.

 Thanks,

 Deepak

 On Feb 3, 10:31 am, dougw igu...@gmail.com wrote:

  Naveen,
  Storing user credentials is never ideal but with basic auth,
  applications that want to make occasional calls to the API must retain
  a local copy of the credentials. Each request to a credential-
  protected API method requires credentials for authentication.
  Obviously this is not ideal, but the current API model is session-
  less.

  Your second question is yes. It will be nice, won't it?

  @dougw

  On Feb 2, 11:52 am, Naveen naveen.s.sax...@gmail.com wrote:

   I have some basic questions (I am still learning this world) regarding
   fetching another user's timeline...

   1. If basic authentication is a must to get the feed for protected
   updates, then does that mean that a third party website that purports
   to fetch a user's timeline needs to store the user's id and password
   to repeatedly provide these parameters as part of basic auth while
   fetching the timeline? Is that what sites such as friendfeed do? Or is
   there a way to perform a one time login and then somehow use a user
   specific credential on a long term basis?

   2. When twitter moves to using oauth, will there be a way for other
   friend
   networks to continuously be able to fetch a twitter user's feed after
   first time Oauth based authorization by using the user specific token
   on a long-term basis?

   Naveen


New API methods to retrieve social graph without pagination

2009-02-03 Thread Alex Payne


Happy to announce two new API methods today, delivered in response to 
developer demand for an easier way to keep tabs on users' social graphs. 
The methods, /friends/ids and /followers/ids, return the entire list of 
numeric user IDs for a user's set of followed and following users, 
respectively. Responses to these methods are cached until the user's 
social graph changes. The responses come direct from our denormalized 
list data stores, and should be reasonably fast even for users with a 
large number of followers/follows.


These new methods are most useful for services that are maintaining a 
cache of user details. If you see a user ID that you don't have cached, 
you'll have to call /users/show to retrieve that user's details. But for 
services with large user bases, or those that simply want to diff a 
user's social graph over time, we hope these methods will come in handy.


You can find the documentation at 
http://apiwiki.twitter.com/REST-API-Documentation#SocialGraphMethods.


--
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x



Re: Fetching user_timeline on twitter

2009-02-03 Thread Naveen

Hi Doug,

The second part of your response was very encouraging so I just wanted
to confirm it again :-)

Are you saying Yes to how twitter's Oauth implementation will work?
or are you saying It would be nice to be able to do it and therefore
hope that twitter would do so?

If it is the former, can you shed some light on how a third party
website will be able to get long term user-specific credentials from
twitter?

Best and thnx

Naveen

On Feb 2, 9:31 pm, dougw igu...@gmail.com wrote:
 Naveen,
 Storing user credentials is never ideal but with basic auth,
 applications that want to make occasional calls to the API must retain
 a local copy of the credentials. Each request to a credential-
 protected API method requires credentials for authentication.
 Obviously this is not ideal, but the current API model is session-
 less.

 Your second question is yes. It will be nice, won't it?

 @dougw

 On Feb 2, 11:52 am, Naveen naveen.s.sax...@gmail.com wrote:



  I have some basic questions (I am still learning this world) regarding
  fetching another user's timeline...

  1. If basic authentication is a must to get the feed for protected
  updates, then does that mean that a third party website that purports
  to fetch a user's timeline needs to store the user's id and password
  to repeatedly provide these parameters as part of basic auth while
  fetching the timeline? Is that what sites such as friendfeed do? Or is
  there a way to perform a one time login and then somehow use a user
  specific credential on a long term basis?

  2. When twitter moves to using oauth, will there be a way for other
  friend
  networks to continuously be able to fetch a twitter user's feed after
  first time Oauth based authorization by using the user specific token
  on a long-term basis?

  Naveen- Hide quoted text -

 - Show quoted text -


Re: New API methods to retrieve social graph without pagination

2009-02-03 Thread Sylvain Munaut

Great ! Thanks a lot.

Small details, when no credential is provided, the follower method
correctly return 'could not authenticate you' while the friends method
return a HTML error page.

Sylvain

Alex Payne wrote:
 Happy to announce two new API methods today, delivered in response to
 developer demand for an easier way to keep tabs on users' social graphs.
 The methods, /friends/ids and /followers/ids, return the entire list of
 numeric user IDs for a user's set of followed and following users,
 respectively. Responses to these methods are cached until the user's
 social graph changes. The responses come direct from our denormalized
 list data stores, and should be reasonably fast even for users with a
 large number of followers/follows.

 These new methods are most useful for services that are maintaining a
 cache of user details. If you see a user ID that you don't have cached,
 you'll have to call /users/show to retrieve that user's details. But for
 services with large user bases, or those that simply want to diff a
 user's social graph over time, we hope these methods will come in handy.

 You can find the documentation at
 http://apiwiki.twitter.com/REST-API-Documentation#SocialGraphMethods.

 --
 Alex Payne - API Lead, Twitter, Inc.
 http://twitter.com/al3x


TwitPicGrid = TwitPic + TweetGrid mashup

2009-02-03 Thread Chad Etzel

Hi All,

With many thanks to Noah Everett (the TwitPic dude) for allowing the
use of TwitPic thumbnails, I have created TwitPicGrid at
http://tweetgrid.com/twitpicgrid as a mashup.  Watch new TwitPics
arrive as they are tweeted, or search for keywords associated with the
pics. Could be interesting for real-time pics of events (Apple
keynote, Inaguration (oops, too late), Steven Fry being trapped in an
elevator, etc...), or just searching for everyone's cat.

Feedback welcome. Enjoy.

-Chad


Re: TwitPicGrid = TwitPic + TweetGrid mashup

2009-02-03 Thread Bryan Knight

harper, didn't you have something like this with lj photos?
__
mk2dev.com



On Tue, Feb 3, 2009 at 19:36, Chad Etzel jazzyc...@gmail.com wrote:

 Hi All,

 With many thanks to Noah Everett (the TwitPic dude) for allowing the
 use of TwitPic thumbnails, I have created TwitPicGrid at
 http://tweetgrid.com/twitpicgrid as a mashup.  Watch new TwitPics
 arrive as they are tweeted, or search for keywords associated with the
 pics. Could be interesting for real-time pics of events (Apple
 keynote, Inaguration (oops, too late), Steven Fry being trapped in an
 elevator, etc...), or just searching for everyone's cat.

 Feedback welcome. Enjoy.

 -Chad



Re: New API methods to retrieve social graph without pagination

2009-02-03 Thread Sylvain Munaut

Mmmh, I may have spoken a little too soon ...

* As I mentionned, I must provide a login / password to do the call
* Whatever id/screen_name I ask for, I always get MY list of friend /
follower and not the one I asked.

Is anybody getting this ?




Re: New API methods to retrieve social graph without pagination

2009-02-03 Thread pnoeric

hey! awesome news. I'm reworking my code to use user IDs so this will
help a lot. thanks much. E

On Feb 3, 5:01 pm, Alex Payne a...@twitter.com wrote:
 Happy to announce two new API methods today, delivered in response to
 developer demand for an easier way to keep tabs on users' social graphs.
 The methods, /friends/ids and /followers/ids, return the entire list of
 numeric user IDs for a user's set of followed and following users,
 respectively. Responses to these methods are cached until the user's
 social graph changes. The responses come direct from our denormalized
 list data stores, and should be reasonably fast even for users with a
 large number of followers/follows.

 These new methods are most useful for services that are maintaining a
 cache of user details. If you see a user ID that you don't have cached,
 you'll have to call /users/show to retrieve that user's details. But for
 services with large user bases, or those that simply want to diff a
 user's social graph over time, we hope these methods will come in handy.

 You can find the documentation 
 athttp://apiwiki.twitter.com/REST-API-Documentation#SocialGraphMethods.

 --
 Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x


Re: Fetching user_timeline on twitter

2009-02-03 Thread dougw

Naveen,
Authentication for third-party services will be handled and serviced
on Twitter by the user on twitter.com. A user will grant permission to
applications to access and edit a specified subset of their account
artifacts. Therefore, if a user wants to allow your third-party
service long-term access to their data, he would simply give you
permission on Twitter.

The about OAuth section here: http://oauth.net/about for more
understanding has a great high-level analogy.

@dougw



On Feb 3, 1:52 pm, Naveen naveen.s.sax...@gmail.com wrote:
 Hi Doug,

 The second part of your response was very encouraging so I just wanted
 to confirm it again :-)

 Are you saying Yes to how twitter's Oauth implementation will work?
 or are you saying It would be nice to be able to do it and therefore
 hope that twitter would do so?

 If it is the former, can you shed some light on how a third party
 website will be able to get long term user-specific credentials from
 twitter?

 Best and thnx

 Naveen

 On Feb 2, 9:31 pm, dougw igu...@gmail.com wrote:

  Naveen,
  Storing user credentials is never ideal but with basic auth,
  applications that want to make occasional calls to the API must retain
  a local copy of the credentials. Each request to a credential-
  protected API method requires credentials for authentication.
  Obviously this is not ideal, but the current API model is session-
  less.

  Your second question is yes. It will be nice, won't it?

  @dougw

  On Feb 2, 11:52 am, Naveen naveen.s.sax...@gmail.com wrote:

   I have some basic questions (I am still learning this world) regarding
   fetching another user's timeline...

   1. If basic authentication is a must to get the feed for protected
   updates, then does that mean that a third party website that purports
   to fetch a user's timeline needs to store the user's id and password
   to repeatedly provide these parameters as part of basic auth while
   fetching the timeline? Is that what sites such as friendfeed do? Or is
   there a way to perform a one time login and then somehow use a user
   specific credential on a long term basis?

   2. When twitter moves to using oauth, will there be a way for other
   friend
   networks to continuously be able to fetch a twitter user's feed after
   first time Oauth based authorization by using the user specific token
   on a long-term basis?

   Naveen- Hide quoted text -

  - Show quoted text -


Re: [twitter-api-announce] New API methods to retrieve social graph without pagination

2009-02-03 Thread Jesse Stay
Well done Alex.  While the 20k requests/hr API limit will still limit the
number of users we are able to have as we grow larger down the road, this
will make a huge difference for us and let us keep growing for much longer.
Also, I like that this encourages apps not to rely on the username of a
person as the unique identifier, as the username can change at any time -
I've noticed that most apps are relying on the username and not user id.
Working to get this in place ASAP.

Thanks,

Jesse

On Tue, Feb 3, 2009 at 6:01 PM, Alex Payne a...@twitter.com wrote:


 Happy to announce two new API methods today, delivered in response to
 developer demand for an easier way to keep tabs on users' social graphs.
 The methods, /friends/ids and /followers/ids, return the entire list of
 numeric user IDs for a user's set of followed and following users,
 respectively. Responses to these methods are cached until the user's
 social graph changes. The responses come direct from our denormalized
 list data stores, and should be reasonably fast even for users with a
 large number of followers/follows.

 These new methods are most useful for services that are maintaining a
 cache of user details. If you see a user ID that you don't have cached,
 you'll have to call /users/show to retrieve that user's details. But for
 services with large user bases, or those that simply want to diff a
 user's social graph over time, we hope these methods will come in handy.

 You can find the documentation at
 http://apiwiki.twitter.com/REST-API-Documentation#SocialGraphMethods.

 --
 Alex Payne - API Lead, Twitter, Inc.
 http://twitter.com/al3x


 



Re: New API methods to retrieve social graph without pagination

2009-02-03 Thread Matt K.

Alex -

This is a great addition to the API - will make things much easier.

Quick question (and I apologize if this is already documented): do the
followers / friends always come in descending order of when they
friendship/follow was created? In other words will the most recent
follow/friend always be first?

I know the original followers call was ordered in the order in which
the follower joined twitter. Hoping this isn't set up the same way -
it would be nice to basically stop iterating over the list once a
repeat friend/follower is found.

Thanks for the clarification,
Matt

On Feb 3, 5:01 pm, Alex Payne a...@twitter.com wrote:
 Happy to announce two new API methods today, delivered in response to
 developer demand for an easier way to keep tabs on users' social graphs.
 The methods, /friends/ids and /followers/ids, return the entire list of
 numeric user IDs for a user's set of followed and following users,
 respectively. Responses to these methods are cached until the user's
 social graph changes. The responses come direct from our denormalized
 list data stores, and should be reasonably fast even for users with a
 large number of followers/follows.

 These new methods are most useful for services that are maintaining a
 cache of user details. If you see a user ID that you don't have cached,
 you'll have to call /users/show to retrieve that user's details. But for
 services with large user bases, or those that simply want to diff a
 user's social graph over time, we hope these methods will come in handy.

 You can find the documentation 
 athttp://apiwiki.twitter.com/REST-API-Documentation#SocialGraphMethods.

 --
 Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x


Re: New API methods to retrieve social graph without pagination

2009-02-03 Thread dougw

Just wanted to supply sample output for the curious:

curl --basic --user dougw:PASSWORD http://twitter.com/followers/ids.xml
?xml version=1.0 encoding=UTF-8?
ids
id2396591/id
id13348/id
id6014732/id
id9300822/id
/ids

@dougw

On Feb 3, 11:17 pm, Matt K. mkoi...@gmail.com wrote:
 Alex -

 This is a great addition to the API - will make things much easier.

 Quick question (and I apologize if this is already documented): do the
 followers / friends always come in descending order of when they
 friendship/follow was created? In other words will the most recent
 follow/friend always be first?

 I know the original followers call was ordered in the order in which
 the follower joined twitter. Hoping this isn't set up the same way -
 it would be nice to basically stop iterating over the list once a
 repeat friend/follower is found.

 Thanks for the clarification,
 Matt

 On Feb 3, 5:01 pm, Alex Payne a...@twitter.com wrote:

  Happy to announce two new API methods today, delivered in response to
  developer demand for an easier way to keep tabs on users' social graphs.
  The methods, /friends/ids and /followers/ids, return the entire list of
  numeric user IDs for a user's set of followed and following users,
  respectively. Responses to these methods are cached until the user's
  social graph changes. The responses come direct from our denormalized
  list data stores, and should be reasonably fast even for users with a
  large number of followers/follows.

  These new methods are most useful for services that are maintaining a
  cache of user details. If you see a user ID that you don't have cached,
  you'll have to call /users/show to retrieve that user's details. But for
  services with large user bases, or those that simply want to diff a
  user's social graph over time, we hope these methods will come in handy.

  You can find the documentation 
  athttp://apiwiki.twitter.com/REST-API-Documentation#SocialGraphMethods.

  --
  Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x