我应该如何使用 MindMeister API 的 "Personal access tokens"?

How should I use "Personal access tokens" of MindMeister API?

关于MindMeister的认证API,分为三种:

  1. API 键
  2. OAuth 2.0 应用
  3. 个人访问令牌

我想用第三个,说明下:

Personal access tokens

Personal access tokens enable direct access to your MindMeister account via the API without the need of an OAuth 2.0 App or and an API key.

我创建了一个并用它来执行我的 API 调用,但我收到错误 99:

{"rsp":{"stat":"fail","err":{"code":"99","msg":"The method requires user authentication but the user was not logged in, or the authenticated method call did not have the required permissions."}}}

我试过测试这个方法'mm.auth.checkToken'

这是文档MindMeister API Developers,但与“个人访问令牌”无关。

我的请求 URL 如下所示:

https://www.mindmeister.com/services/rest?api_key=<api_key_code>&auth_token=<personal_token>&method=mm.auth.checkToken&response_format=json&api_sig=<md5 hash of the sign>

我不知道如何使用这个API功能,所以我想知道这个,请帮助我。

遗憾的是,此功能尚未包含在 MindMeister API 文档中。

使用以下 url 通过个人访问令牌访问 api:

https://www.mindmeister.com/services/rest/oauth2?access_token=<access_token>&method=<method>

对于 OAuth 2.0,您不再需要签署请求,也不必发送 api 密钥。只需发送一个有效的访问令牌、方法名称及其所需的参数。