[twitter-dev] Re: Twitter List API not working?

2009-11-24 Thread alan_b
thanks a lot Rich. you're right!

strangely enough, it looks like it worked(it doesn't give you error)
but it doesn't!

On Nov 24, 9:29 pm, Rich  wrote:
> Nope you have to send a description down (even though the API docs say
> it's optional, at the moment it's not!)
>
> On Nov 24, 10:18 am, alan_b  wrote:
>
>
>
> > it is just me or everybody else as well? the List API seems down at
> > the moment
>
> > i tried to create a list using the API
>
> > example:
> > ---
> > curl -u user:pass -d 
> > "name=friends"http://api.twitter.com/1/31337geek/lists.xml
>
> > i've got a normal response
> > ---
> > 
> > 
> >   3780302
> >   friends
> >   @31337geek/friends
> >   friends
> >   
> >   0
> >   0
> >   /31337geek/friends
> >   public
> >   .
> > 
>
> > and then i made a "index" call immediately:
> > curl -u user:passhttp://api.twitter.com/1/31337geek/lists.xml
>
> > i got a empty list:
> > -
> > 
> > 
> > 
> > 
> > 0
> > 0
> > 
>
> > did i call a wrong API? or the API is currently down?


[twitter-dev] Twitter List API not working?

2009-11-24 Thread alan_b
it is just me or everybody else as well? the List API seems down at
the moment

i tried to create a list using the API

example:
---
curl -u user:pass -d "name=friends" http://api.twitter.com/1/31337geek/lists.xml

i've got a normal response
---


  3780302
  friends
  @31337geek/friends
  friends
  
  0
  0
  /31337geek/friends
  public
  .


and then i made a "index" call immediately:
curl -u user:pass http://api.twitter.com/1/31337geek/lists.xml

i got a empty list:
-




0
0



did i call a wrong API? or the API is currently down?


[twitter-dev] Twitter List API not working?

2009-11-24 Thread alan_b
it is just me or everybody else as well? the List API seems down at
the moment

i tried to create a list using the API

example:
---
curl -u user:pass -d "name=friends" http://api.twitter.com/1/31337geek/lists.xml

i've got a normal response
---


  3780302
  friends
  @31337geek/friends
  friends
  
  0
  0
  /31337geek/friends
  public
  .


and then i made a "index" call immediately:
curl -u user:pass http://api.twitter.com/1/31337geek/lists.xml

i got a empty list:
-




0
0



did i call a wrong API? or the API is currently down?


[twitter-dev] Re: Find People API

2009-11-16 Thread alan_b

just wonder if this API will be changed to cursor-based paging soon?
or will be left as it is now?

On Nov 17, 8:16 am, Raffi Krikorian  wrote:
> For a while now Twitter.com has had a "Find People" button that allows  
> users to search for other people to follow.  Starting today we're  
> exposing that functionality over the API as well -- take a look at the  
> new endpoint that we're calling the "Find People API":
>
> http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-users-search
>
> Have fun searching.
>
> --
> Raffi Krikorian
> Twitter Platform Team
> ra...@twitter.com | @raffi


[twitter-dev] new cursor-based pagination not multithread-friendly

2009-09-18 Thread alan_b

when dealing with retrieving a large followers list from API, what i
did was estimate the no. of pages i need (total / 5000) from the
follower count of user's profile, and then send concurrent API
requests to improve the speed.

now with the new cursor-based pagination, this become impossible(it
stills work, but i guess page-based pagination will be obsoleted
someday?), because I don't know the next_cursor until I finish
downloading a whole page. so i guess the page-based should be preserved
(and improve)? rather than making it obsolete?


[twitter-dev] Re: Rate Limit reporting

2009-07-13 Thread alan_b

but the http://apiwiki.twitter.com/Rate-limiting  doc also said:

"If you have received verification from Twitter that your account and/
or IP address has been whitelisted you can verify your whitelisting
with the accounts/rate_limit_status method. Calling this method with
credentials will return the rate limit status of the authenticating
user and invoking this method without credentials will return the rate
limit status of the calling IP address. "

but my experience is calling http://twitter.com/account/rate_limit_status.xml
with a valid credential using OAuth always return rate limit status of
the calling IP address, not the given credential.

On Jul 14, 9:27 am, Damon Clinkscales  wrote:
> The doc says: "IP whitelisting takes precedence to account rate
> limits. GET requests from a whitelisted IP address made on a user's
> behalf will be deducted from the whitelisted IP's limit, not the
> users."
>
> http://apiwiki.twitter.com/Rate-limiting
>
> If he's seeing a 20k limit, then that implies it's a whitelisted IP.
> According to the above, that IP would take precedence over the account
> user's passed in credentials.
>
> Yes?
>
> Both Matt and Doug answered this question though, so I feel like I
> must be reading this wrong. :)
>
> -damon
> --http://twitter.com/damon
>
>
>
> On Mon, Jul 13, 2009 at 7:48 PM, Doug Williams wrote:
> > Martin,
> > That's interesting.
>
> > Is there a pattern to this? Can you offer steps for recreation? It would be
> > helpful to have full header information when this does happen so we can look
> > to see if a specific machine that is returning incorrect information.
>
> > Thanks,
> > Doug
>
> > On Mon, Jul 13, 2009 at 4:26 PM, Martin Omander  wrote:
>
> >> Hi there,
>
> >> I'm getting the same thing, that is the rate limit for my IP address
> >> rather than for the account... most of the time. I run this curl
> >> command
>
> >> curl -u :
> >>http://twitter.com/account/rate_limit_status.xml
>
> >> where  and  are the account's real username and
> >> password. Most of the time the response contains an hourly-limit of
> >> 20,000, for my IP address I assume. But occasionally the exact same
> >> curl command returns an hourly-limit of 150. Very odd. I assume curl
> >> handles the credentials correctly.
>
> >> Any thoughts?
>
> >> /Martin
>
> >> On Jul 13, 9:54 am, Justin  wrote:
> >> > Sorry about emailing you my last response.
>
> >> > I understand what you're saying about firefox - though I'm having the
> >> > same issue with requests via Microsoft.XMLHTTP requests - it's gone
> >> > the end of the day now (I do have a habit of starting these things
> >> > when there's no time). Will carry on the fight tomorrow - at least I
> >> > have a direction now - will try some other request methods.
> >> > Many thanks once again for your quick responses.
>
> >> > @JustinReid
>
> >> > On Jul 13, 5:26 pm, Matt Sanford  wrote:
>
> >> > > Hi Justin,
>
> >> > >      The user:pass is a shortcut used by some browsers and libraries
> >> > > but is not supported in all libraries. What language/library are you
> >> > > using? Most of them have some option for setting the user and password
>
> >> > > directly. Also, the most common issue when seeing the IP limit is an
> >> > > incorrect password. You should also try calling verify_credentials to
>
> >> > > make sure the password is correct and everything is being received
> >> > > correctly by Twitter.
>
> >> > > Thanks;
> >> > >   – Matt Sanford / @mzsanford
> >> > >       Twitter Dev
>
> >> > > On Jul 13, 2009, at 9:22 AM, Justin wrote:
>
> >> > > > I feel a bit silly asking this in the time of OAuth - but I'm not
> >> > > > quite there yet...
>
> >> > > > So how to return the rate limit for a given user?
> >> > > > Looking at the api documentation I presume you need to authenticate
> >> > > > (log in)
>
> >> > > > The obvious way to do this is via GET with:
> >> > > > http://username:passw...@twitter.com/account/rate_limit_status.xml
> >> > > > I've also tried base64'ing the username:password as suggested here:
> >> > > >http://en.wikipedia.org/wiki/Basic_access_authentication
> >> > > >http://base64(User:Pass)@twitter.com/account/rate_limit_status.xml
>
> >> > > > However, every time I try I'm returned with the rate limit for the
> >> > > > IP
> >> > > > address and not the user.
>
> >> > > > I know I'm missing something (a few sandwiches from the picnic
> >> > > > probably)  - could someone enlighten me?
>
> >> > > > Many thanks


[twitter-dev] account/rate_limit_status

2009-07-09 Thread alan_b

I'm making a account/rate_limit_status call using OAuth authenticated
with a non-whitelisted user, and the server that making the call is
whitelisted. The call always returned the IP-based rate limit
information, not the authenticated user info.

Please try it here with a non-whitelisted account
http://alanho.com/twitter_console/

I searched this group before and found the issue(http://
code.google.com/p/twitter-api/issues/detail?id=376) related to this
but it's marked as "Fixed". anyone can confirm the re-appearance of
this issue??