Pooja Shah
Pooja Shah

Reputation: 997

How to get user profile in twitter using outh after getting access token?

I have followed tutorial http://codegerms.com/login-with-twitter-example-with-ios-tutorial-using-oauth/ to get access token using outh for twitter. Now how can i get user profile info using access token?

Upvotes: 3

Views: 1764

Answers (3)

Emy
Emy

Reputation: 344

follow the tutorial of getting user data using the access token, Tutorial is available on the same site http://codegerms.com/get-user-info-data-twitter-api-example-ios-objective-c/

Upvotes: 2

Nithin Paul
Nithin Paul

Reputation: 2199

try this one with tweetsharp.dll

string oauth_consumer_key = "your key";
string oauth_consumer_secret = "your secret";

TwitterService tweetservice = new TwitterService(oauth_consumer_key, oauth_consumer_secret);//tweet service you will get from tweetsharp dll
string token = "your token";

string tokenSecret = "your token secret";

tweetservice.AuthenticateWith(token, tokenSecret);
var tweet = tweetservice.GetUserProfile(new GetUserProfileOptions() { IncludeEntities = false, SkipStatus = false });

Upvotes: 0

Janmenjaya
Janmenjaya

Reputation: 4163

If you want to do it by without using third party library then, Have a look at https://dev.twitter.com/rest/tools/console, twitter documentation.

Or else STTwitter is an excellent library for this. You can have a look at this Github Link to STTwitter

You can get profile,Favorites,Share easily

Upvotes: 0

Related Questions