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!