无法在 Twitter 应用程序中通过邮递员注册 webhook [英] Not able to register webhook via postman in twitter app

查看:27
本文介绍了无法在 Twitter 应用程序中通过邮递员注册 webhook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经按照所有步骤创建了一个新的应用程序,并获取了消费者密钥、密钥和令牌详细信息,并尝试通过邮递员创建 webhook.我收到以下错误

<代码>{错误":[{代码":32,"message": "无法验证您的身份."}]}

我已经尝试过 webhook 的删除和获取方法,它工作正常.

解决方案

他们可能在他们的例子中犯了错误.您只需要将 url 参数从查询字符串移动到表单数据.使用 x-www-form-urlencoded 主体.

此外 - 如果您将 noncetimestamp 留空,Postman 会自动为您生成它们.

在此处输入图片描述

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

I 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.

解决方案

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

这篇关于无法在 Twitter 应用程序中通过邮递员注册 webhook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆