I found a issue in the direct_messages/new if there has % character in the text. Here is my test text:
plain: Random status update: 1797744914%
encode: Random%20status%20update%3A%201797744914%25
The API returns HTTP/1.1 401 Unauthorized error.
{"errors":[{"message":"Could not authenticate you","code":32}]}
I know my authentication is correct because once I remove the % character. But once I add a space after the %, it works.
And I found the same issue on statuses/update method as well.
Is this a bug of the REST API?
Cheers,