One way you could do this is to call /users/show. If the user exists
their details will be returned, if not, you will get a 404 or 403
error (Suspended users are returned as a 403 error). You can find out
more about /users/show on our developer resources site:
    http://dev.twitter.com/doc/get/users/show

The /users/show request is rate limited so you will want to be careful
about the number of requests you make.

Hope that helps,
Matt

On Sat, Aug 28, 2010 at 5:46 PM, Sujit Kumar Garikipati
<garikipati.sujitku...@gmail.com> wrote:
> You can refer to this library, written by @abraham to learn using OAuth
> authorization in PHP.
> http://twitteroauth.labs.poseurtech.com/connect.php
> On Sat, Aug 28, 2010 at 7:15 AM, computerzworld <meat2...@gmail.com> wrote:
>>
>> Hi, I have created application that fetches users' tweets from his/her
>> user account. I want to validate the username using php & ajax when he/
>> she is entering in the textbox. Is there any way using which I can get
>> response whether user have entered valid username or not? Please help
>> me. Thanks in advance.
>>
>> --
>> Twitter developer documentation and resources: http://dev.twitter.com/doc
>> API updates via Twitter: http://twitter.com/twitterapi
>> Issues/Enhancements Tracker:
>> http://code.google.com/p/twitter-api/issues/list
>> Change your membership to this group:
>> http://groups.google.com/group/twitter-development-talk?hl=en
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk?hl=en
>



-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en

Reply via email to