I trying to use twitter API to send direct messages using C# but Twitter keeps saying:
"The remote server returned an error: (401) Unauthorized."
But this has no sense because I could use other API calls where I was authorized.
Some background info:
I created an application with these access permissions: Read, Write and Access direct messages
I could succesfully post a status in my timeline:
https://dev.twitter.com/docs/api/1/post/statuses/update
I could also retrieve all the direct messages sent to me:
https://dev.twitter.com/docs/api/1/get/direct_messages
The problem is when I try to send a direct message: