>From http://apiwiki.twitter.com/Twitter-Search-API-Method:-search

Warning: The user ids in the Search API are different from those in the
> REST API (about the two APIs <http://apiwiki.twitter.com/API-Overview>). This
> defect is being tracked by Issue 
> 214<http://code.google.com/p/twitter-api/issues/detail?id=214>.
> This means that the to_user_id and from_user_id field vary from the
> actualy user id on Twitter.com. Applications will have to perform a screen
> name-based lookup with the 
> users/show<http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-users%C2%A0show>
>  method
> to get the correct user id if necessary.


You will see from
http://api.twitter.com/users/show.json?screen_name=katie_walls that the
actual user id is 75030777.

Abraham

On Sun, Apr 11, 2010 at 12:07, ryan baldwin <ryanbald...@gmail.com> wrote:

> Hey all, I've noticed some very odd and inconsistent behaviour over
> the past couple days that has me stumped.  When I use the users/show
> endpoint using user_id the response produces a 404. When I use
> screen_name of that same user everything works fine. Anybody know what
> the scoop is?
>
> here are a couple of examples:
> {
>      u'iso_language_code':u'en',
>      u'text':u'Twittering from the eye doctors office. Its kinda
> really boring here....',
>      u'created_at':u'Sat,
>      10      Apr 2010 16:20:50      +0000',
>      u'profile_image_url':      u'http://a3.twimg.com/profile_images/
> 770801237/CIMG5940_normal.JPG',
>      u'source':      u'&lt;a href=&quot;http://ubertwitter.com&quot;
> rel=&quot;nofollow&quot;&gt;UberTwitter&lt;/a&gt;',
>      u'location':      u'&#220;T:52.138437,
>      -106.667903      ', u'      from_user':u'katie_walls',
>      u'from_user_id':53548499,
>      u'to_user_id':None,
>      u'geo':None,
>      u'id':11944382350      L,
>      u'metadata':{
>         u'result_type':u'recent'
>      }
>
> http://api.twitter.com/users/show.json?user_id=53548499 (404)
> http://api.twitter.com/users/show.json?screen_name=katie_walls (200,
> works fine)
>
> Any ideas? I'm at a complete loss and I'm really not looking forward
> to the repair costs of the hole I've made in the wall with the top of
> my head.
>
> Thanks!
>
> - ryan.
>
>
> --
> To unsubscribe, reply using "remove me" as the subject.
>



-- 
Abraham Williams | Developer for hire | http://abrah.am
PoseurTech Labs | Projects | http://labs.poseurtech.com
This email is: [ ] shareable [x] ask first [ ] private.

Reply via email to