Reputation: 867
I want to get the user profile data on connect to twitter. I managed to connect and get the access token and access token secret using Tweetsharp Lib. But trying to get the user profile throw an error. So I want to use the Rest Api and just get the info my self. I would like to see an example of how to pass the access token and or access token secret. Anybody can help me out please?
Upvotes: 0
Views: 1599
Reputation: 2087
I am the developer of Tweetinvi which is a library similar to Tweetsharp but that is maintained and up to date.
You can get a user profile using the following code :
TwitterCredentials.SetCredentials("Access_Token", "Access_Token_Secret", "Consumer_Key", "Consumer_Secret");
var user = User.GetUserFromScreenName("<username>");
I hope this can help you with your code.
Cheers, Linvi
Upvotes: 2