gpt4 book ai didi

python - getUser 返回 EDAMSystemException errorCode=8

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:42:02 29 4
gpt4 key购买 nike

我试图通过 evernote api 在 python 上获取我的帐户信息,但是,我遇到了错误:

Traceback (most recent call last): File "", line 1, in

File "build/bdist.linux-x86_64/egg/evernote/api/client.py", line 148, in delegate_method

File "build/bdist.linux-x86_64/egg/evernote/edam/userstore/UserStore.py", line 1033, in getUser

File "build/bdist.linux-x86_64/egg/evernote/edam/userstore/UserStore.py", line 1058, in recv_getUser

evernote.edam.error.ttypes.EDAMSystemException: EDAMSystemException(errorCode=8, rateLimitDuration=None, _message='authenticationToken')

我的python代码如下:

from evernote.api.client import EvernoteClient
dev_token="my develop token"
client = EvernoteClient(token=dev_token)
userStore = client.get_user_store()
user = userStore.getUser()

我确定我已经为我的 Evernote 帐户生成了一个有效的开发人员 token ,如图所示,我的帐户中有一个开发人员 token link

有什么我遗漏的吗?

顺便说一句,我使用上面的代码并将 key 替换为另一个印象笔记沙箱帐户生成的开发 token ,就可以了。

最佳答案

如果您不在沙盒上,请尝试:

client = EvernoteClient(token=dev_token, sandbox=False)

关于python - getUser 返回 EDAMSystemException errorCode=8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41710896/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com