Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to register webhook via postman in twitter app

https://api.twitter.com/1.1/account_activity/all/prod/webhooks.json?url=https://test.com not working

enter image description hereI have followed all steps to create a new application and getting consumer key, secret keys and also token details and try to create webhook via postman. I am getting follwing error

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

I have tried delete and get methods for webhook and it is working fine.

like image 285
Kannan Thangadurai Avatar asked May 03 '19 10:05

Kannan Thangadurai


People also ask

How do I use Twitter API in Postman?

To add your keys and tokens to the “Twitter API v2” environment, click on the “manage environments” button in the top right corner of Postman., you will need to click on the settings button in the top right corner. From the list of environments, click on “Twitter API v2”.


1 Answers

They probably goofed in their example. You just need to move the url parameter from the query string to the form data. Use the x-www-form-urlencoded body.

Also - if you leave the nonce and timestamp blank, then Postman will auto-generate them for you.

enter image description here

like image 195
gamedev8 Avatar answered Oct 12 '22 17:10

gamedev8