getUser return EDAMSystemException errorCode=8
getUser return EDAMSystemException errorCode=8
我试图在 python 上通过 evernote api 获取我的帐户信息,但是,我遇到了错误:
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 帐户生成了一个有效的开发人员令牌,如图所示,我的帐户中有一个开发人员令牌link
有什么我遗漏的吗?
对了,我用上面的代码,把key换成印象笔记沙盒账户生成的另一个develop token,没问题。
如果您不在沙盒上,请尝试:
client = EvernoteClient(token=dev_token, sandbox=False)
我试图在 python 上通过 evernote api 获取我的帐户信息,但是,我遇到了错误:
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 帐户生成了一个有效的开发人员令牌,如图所示,我的帐户中有一个开发人员令牌link
有什么我遗漏的吗?
对了,我用上面的代码,把key换成印象笔记沙盒账户生成的另一个develop token,没问题。
如果您不在沙盒上,请尝试:
client = EvernoteClient(token=dev_token, sandbox=False)