How to use REST API to retreive last tweets

dotnet
csharp

#1

Hello,

I have tried many twitter libraries but get errors so I decided to do this from scratch using the:
https://dev.twitter.com/oauth

What I wonder is how to use C# to authorize as I have all the tokens. Then is the goal to use
"https://dev.twitter.com/rest/reference/get/statuses/user_timeline" to get the last tweets on the timeline but I don’t know how to even start the first line of code as I can’t find any examples.

I would be greatful for any help how to do this.

Thanks


#2

You mentioned that you’ve lots of libraries but get errors - what kind of errors are you seeing when you use them?

If you are using C# then there are a range of options available such as Tweetinvi and LinqToTwitter which have their own example code.

The reason I’m suggesting using one of these is that they do all of the hard work in OAuth for you, and should save you a lot of time!