Hi all,
I’ve tried using this class by this chap here:
https://blog.dantup.com/2016/07/simplest-csharp-code-to-post-a-tweet-using-oauth/
…and modify it to use the Twitter API search facility, but no matter what I do, I get the response:


I added this method:
and the URL being passed through is:
Obviously, I’ve got something wrong with the authentication, but I just cannot for the life of me see what.
I can connect to Twitter and search using PostMan and putting my same creds in there and it all works fine.
EDIT: I found this, so abandoned this approach. https://github.com/andyhutch77/oAuthTwitterWrapper/blob/master/ConsoleApplication/Program.cs
Start in postman first and read the documentation of the Twitter API. If you can’t get it to run in postman you are not going to be able to do it in .NET.
Indeed. Hence that:
I can connect to Twitter and search using PostMan and putting my same creds in there and it all works fine.
Anyway…I’ve just found a nuget library for Twitter operations, so will give that a go.
C# devs
null reference exceptions

source