本文介绍了如何使用 Postman 客户端调用 Twitter API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已按照创建新应用程序和获取消费者密钥、秘密对以及令牌访问详细信息所需的步骤进行操作.现在我想使用 chrome Postman 客户端调用
希望能帮到你.
I have followed the steps required to create a new application and getting consumer key, secret pairs and also the token access details. Now I would like to make calls to Twitter Rest API, using chrome Postman client.
How should I pass the customer key, secret, token etc details to the request? I have tried to pass them as headers and also tried to pass them by selecting OAuth1.0 option in postman client but I am getting errors:
{
"errors": [
{
"code": 32,
"message": "Could not authenticate you."
}
]
}
解决方案
I know this is old, but in case anyone is still facing this issue, the following steps worked for me:
- In Authorization tab, select OAuth 1.0
- Enter your consumer key, consumer secret, accesstoken and access token secret
- Enable "Add params to header" and"Auto add parameters"
- Send the request
I hope that helps.
这篇关于如何使用 Postman 客户端调用 Twitter API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!