tags:

views:

82

answers:

1

i am new to OAuth

i want to know how to use "Twitter OAuth library from Abraham Wiliam" to get user's credential information.such as screen_name.

A: 

You don't need to be authenticated to get public user information: you can just use simple web requests to http://api.twitter.com/1/users/show/StephenFry.xml etc. Documentation here.

Rup
i need to get user name of specific user who authenticate with twitter through my site,i have tokens
shan
i don't know user name
shan
It looks like you want to call this API method with an OAuth-authenticated call: http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-account%C2%A0verify_credentials. There's example calls to this in both index.php and test.php in Abraham's OAuth library.
Rup
i don't have ids,i only have a token keys which sent by twitter
shan
Sure - if you use those tokens to authenticate a request to http://api.twitter.com/1/account/verify_credentials.xml, e.g. `$content = $connection->get('account/verify_credentials');` with that library, you'll get back the user information.
Rup