New Direct message

directmessages

#1

I’m trying to run a query, but get an error

Heders

Authorization: OAuth oauth_consumer_key="*****",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1531206548",oauth_nonce="-524749952",oauth_version="1.0",oauth_token="*****",oauth_signature="n00Y1wUVSK9e3jO8MHVfvG17HzI%3D" User-Agent: twitter4j http://twitter4j.org/ /4.0.6 Accept-Encoding:gzip

but I’m constantly getting an error

   {
    "errors": [
   {
    "code": 32,
    "message": "Could not authenticate you."
    }
    ],
    }

What am I doing wrong? I tried to reproduce the query from the library TWITTER4J

If I do this through the TWITTER4J library
The result is an empty string.


#2

I’m personally not too familiar with TWITTER4J.

Have you tried running this with Twurl or a tool like Insomnia or Postman?


#3

no, can you give an example?


#4

I tried to replace the links in TWITTER4J
The code http 200 comes to me, but the answer body comes empty


#5

Who can help me make up Heders?


#6

We actually have some Twurl examples listed in our documentation.