我在使用 Python3 sdk 的 oauth 上不断收到错误消息:self.token = access_token_dict['oauth_token'] KeyError: 'oauth_token'

问题描述 投票:0回答:0

我刚刚为 evernote 激活了我的密钥,我正在为 oauth 苦苦挣扎。

通过此方法请求 oauths 令牌时:

request_token = client.get_request_token('http://localhost')

我得到我的 3 个论点:

  • oauth_token
  • oauth_token_secret
  • oauth_callback_confirmed

然后尝试使用此方法获取我的访问令牌:

access_token = client.get_access_token(     oauth_token = request_token['oauth_token'] ,     oauth_token_secret= request_token['oauth_token_secret'],     oauth_verifier=oauth_verifier )

  • 我不明白我从哪里得到 oauth_verifier,我使用 2222 因为似乎每个人都使用它

但我仍然收到该错误:

line 69, in get_access_token     self.token = access_token_dict['oauth_token'] KeyError: 'oauth_token'

试图获取访问令牌并尝试手动传递参数

python-3.x api oauth evernote
© www.soinside.com 2019 - 2024. All rights reserved.