如何使用Postman客户端调用Twitter API [英] How to make calls to Twitter API using Postman client

查看:429
本文介绍了如何使用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:

  1. In Authorization tab, select OAuth 1.0
  2. Enter your consumer key, consumer secret, access token and access token secret
  3. Enable "Add params to header" and "Auto add parameters"
  4. Send the request

I hope that helps.

这篇关于如何使用Postman客户端调用Twitter API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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