[twitter-dev] Re: users.lookup() pulls by friendship date

2010-05-28 Thread themattharris
Hey cballou,

What is the actual API call you are making?
I ask because the users/lookup.json method requires you pass it user
ids for it to work. If you don't pass it any user ids or screen names
you will told that no user matches the specified terms.
The data is then returned in an undefined order. As nischalshetty
said, this method can be used to request information about any user so
the sort order is arbitrary.

Are you getting results when you pass no IDs?

Matt



On May 27, 7:43 pm, nischalshetty nischalshett...@gmail.com wrote:
 So it's the same one that I was talking about. They haven't specified
 any sorting rules in the doc, are you sure about it?

 Before all that, I hope you know that the lookup API can be used to
 retrieve info about ANY twitter user. So it does not matter if that
 user is your friend. How will the sorting be applied then?

 -Nischal

 On May 27, 5:18 am, cballou ball...@gmail.com wrote:



  The link is:

 http://dev.twitter.com/doc/get/users/lookup

  It actually returns the full dataset for up to 100 users. The returned
  data is sorted by your newest friendship in descending order.  This
  functionality is quite minimal and could definitely be expanded upon
  like I suggested above.  I was just wondering if there were any
  possibly hidden parameters I could pass in to change the count, cursor
  position, etc.

  On May 26, 1:22 am, nischalshetty nischalshett...@gmail.com wrote:

   Are you talking about this 
   -http://api.twitter.com/version/users/lookup.format

   The above API returns whatever ids you have passed. Am I missing
   something?

   -Nischal

   On May 26, 4:38 am, cballou ball...@gmail.com wrote:

Nobody?

On May 25, 12:14 pm, cballou ball...@gmail.com wrote:

 I really don't like the fact that calling users.lookup() returns the
 last 100 users I have friended.

 Is there a way to retrieve users in a more random fashion or with some
 kind of ordering (ascending/descending)?  I'm looking for more
 optional parameters.

 Suppose, for instance, that I have 500 friends.  I would not want to
 pull my last 100 friends when making this API call.  I might want to,
 however, pull a random sampling of 100 of those friends.  I may also
 want to pull a particular number of friends (i.e. imposing a limit on
 the request).

 I would propose that there be additional filtering parameters for this
 request:

 sort: asc/desc/random (default desc)
 limit: 1-100 (default 100)

 Can anybody clarify and expand upon this for me?


[twitter-dev] Re: users.lookup() pulls by friendship date

2010-05-28 Thread cballou
Matt,

I'm passing individual screen names and/or ids.  I understand the full
functionality of this API method.  My question is more of a feature
request because the return data is not particularly useful for what
I'm trying to do.  Ideally I would want to pass a cursor parameter
like many of the other API calls so I can sort over datasets of 100
results.

Scenario:
I would like to retrieve all specific user's followers screen names
(not just 100 of the latest) in the fewest possible API calls.
Ideally this would involve checking a next_cursor return variable
from the json data.

On May 28, 6:27 pm, themattharris thematthar...@twitter.com wrote:
 Hey cballou,

 What is the actual API call you are making?
 I ask because the users/lookup.json method requires you pass it user
 ids for it to work. If you don't pass it any user ids or screen names
 you will told that no user matches the specified terms.
 The data is then returned in an undefined order. As nischalshetty
 said, this method can be used to request information about any user so
 the sort order is arbitrary.

 Are you getting results when you pass no IDs?

 Matt

 On May 27, 7:43 pm, nischalshetty nischalshett...@gmail.com wrote:

  So it's the same one that I was talking about. They haven't specified
  any sorting rules in the doc, are you sure about it?

  Before all that, I hope you know that the lookup API can be used to
  retrieve info about ANY twitter user. So it does not matter if that
  user is your friend. How will the sorting be applied then?

  -Nischal

  On May 27, 5:18 am, cballou ball...@gmail.com wrote:

   The link is:

  http://dev.twitter.com/doc/get/users/lookup

   It actually returns the full dataset for up to 100 users. The returned
   data is sorted by your newest friendship in descending order.  This
   functionality is quite minimal and could definitely be expanded upon
   like I suggested above.  I was just wondering if there were any
   possibly hidden parameters I could pass in to change the count, cursor
   position, etc.

   On May 26, 1:22 am, nischalshetty nischalshett...@gmail.com wrote:

Are you talking about this 
-http://api.twitter.com/version/users/lookup.format

The above API returns whatever ids you have passed. Am I missing
something?

-Nischal

On May 26, 4:38 am, cballou ball...@gmail.com wrote:

 Nobody?

 On May 25, 12:14 pm, cballou ball...@gmail.com wrote:

  I really don't like the fact that calling users.lookup() returns the
  last 100 users I have friended.

  Is there a way to retrieve users in a more random fashion or with 
  some
  kind of ordering (ascending/descending)?  I'm looking for more
  optional parameters.

  Suppose, for instance, that I have 500 friends.  I would not want to
  pull my last 100 friends when making this API call.  I might want 
  to,
  however, pull a random sampling of 100 of those friends.  I may also
  want to pull a particular number of friends (i.e. imposing a limit 
  on
  the request).

  I would propose that there be additional filtering parameters for 
  this
  request:

  sort: asc/desc/random (default desc)
  limit: 1-100 (default 100)

  Can anybody clarify and expand upon this for me?


[twitter-dev] Re: users.lookup() pulls by friendship date

2010-05-27 Thread nischalshetty
So it's the same one that I was talking about. They haven't specified
any sorting rules in the doc, are you sure about it?

Before all that, I hope you know that the lookup API can be used to
retrieve info about ANY twitter user. So it does not matter if that
user is your friend. How will the sorting be applied then?

-Nischal

On May 27, 5:18 am, cballou ball...@gmail.com wrote:
 The link is:

 http://dev.twitter.com/doc/get/users/lookup

 It actually returns the full dataset for up to 100 users. The returned
 data is sorted by your newest friendship in descending order.  This
 functionality is quite minimal and could definitely be expanded upon
 like I suggested above.  I was just wondering if there were any
 possibly hidden parameters I could pass in to change the count, cursor
 position, etc.

 On May 26, 1:22 am, nischalshetty nischalshett...@gmail.com wrote:



  Are you talking about this 
  -http://api.twitter.com/version/users/lookup.format

  The above API returns whatever ids you have passed. Am I missing
  something?

  -Nischal

  On May 26, 4:38 am, cballou ball...@gmail.com wrote:

   Nobody?

   On May 25, 12:14 pm, cballou ball...@gmail.com wrote:

I really don't like the fact that calling users.lookup() returns the
last 100 users I have friended.

Is there a way to retrieve users in a more random fashion or with some
kind of ordering (ascending/descending)?  I'm looking for more
optional parameters.

Suppose, for instance, that I have 500 friends.  I would not want to
pull my last 100 friends when making this API call.  I might want to,
however, pull a random sampling of 100 of those friends.  I may also
want to pull a particular number of friends (i.e. imposing a limit on
the request).

I would propose that there be additional filtering parameters for this
request:

sort: asc/desc/random (default desc)
limit: 1-100 (default 100)

Can anybody clarify and expand upon this for me?


[twitter-dev] Re: users.lookup() pulls by friendship date

2010-05-25 Thread cballou
Nobody?

On May 25, 12:14 pm, cballou ball...@gmail.com wrote:
 I really don't like the fact that calling users.lookup() returns the
 last 100 users I have friended.

 Is there a way to retrieve users in a more random fashion or with some
 kind of ordering (ascending/descending)?  I'm looking for more
 optional parameters.

 Suppose, for instance, that I have 500 friends.  I would not want to
 pull my last 100 friends when making this API call.  I might want to,
 however, pull a random sampling of 100 of those friends.  I may also
 want to pull a particular number of friends (i.e. imposing a limit on
 the request).

 I would propose that there be additional filtering parameters for this
 request:

 sort: asc/desc/random (default desc)
 limit: 1-100 (default 100)

 Can anybody clarify and expand upon this for me?


[twitter-dev] Re: users.lookup() pulls by friendship date

2010-05-25 Thread nischalshetty
Are you talking about this - http://api.twitter.com/version/users/lookup.format

The above API returns whatever ids you have passed. Am I missing
something?

-Nischal




On May 26, 4:38 am, cballou ball...@gmail.com wrote:
 Nobody?

 On May 25, 12:14 pm, cballou ball...@gmail.com wrote:

  I really don't like the fact that calling users.lookup() returns the
  last 100 users I have friended.

  Is there a way to retrieve users in a more random fashion or with some
  kind of ordering (ascending/descending)?  I'm looking for more
  optional parameters.

  Suppose, for instance, that I have 500 friends.  I would not want to
  pull my last 100 friends when making this API call.  I might want to,
  however, pull a random sampling of 100 of those friends.  I may also
  want to pull a particular number of friends (i.e. imposing a limit on
  the request).

  I would propose that there be additional filtering parameters for this
  request:

  sort: asc/desc/random (default desc)
  limit: 1-100 (default 100)

  Can anybody clarify and expand upon this for me?


[twitter-dev] Re: users.lookup() pulls by friendship date

2010-05-25 Thread nischalshetty
Are you talking about this - http://api.twitter.com/version/users/lookup.format

The above API returns whatever ids you have passed. Am I missing
something?

-Nischal




On May 26, 4:38 am, cballou ball...@gmail.com wrote:
 Nobody?

 On May 25, 12:14 pm, cballou ball...@gmail.com wrote:

  I really don't like the fact that calling users.lookup() returns the
  last 100 users I have friended.

  Is there a way to retrieve users in a more random fashion or with some
  kind of ordering (ascending/descending)?  I'm looking for more
  optional parameters.

  Suppose, for instance, that I have 500 friends.  I would not want to
  pull my last 100 friends when making this API call.  I might want to,
  however, pull a random sampling of 100 of those friends.  I may also
  want to pull a particular number of friends (i.e. imposing a limit on
  the request).

  I would propose that there be additional filtering parameters for this
  request:

  sort: asc/desc/random (default desc)
  limit: 1-100 (default 100)

  Can anybody clarify and expand upon this for me?