Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This guide explains what an API token is, why you need one, and how to create one.

Learning outcomes

  • Learn how an API token is used.

  • Find out when a token expires and what happens when it expires.

  • Find out how API tokens are deactivated.

What you need

此指南解释了什么是API令牌,为什么需要它,以及如何创建它。

...

学习成果

  • 学习API令牌的使用方式。

所需:

http://dev.portal.mafint.com/

MAFINT

...

API令牌

MAFINT API令牌用于对MAFINT API的请求进行验证。在调用MAFINT API端点时,您需要在HTTP授权标头中提供有效的API令牌,其中有效的令牌被指定为标头值。您需要在该值前加上JWT标识符,该标识符指定了MAFINT使用的专有身份验证方案。例如:

JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9 ... XmzAoTG3K-zrg

*Note: the generated token will never be expired.

...

API tokens required user to sign in to their own MAF account to create them.

Create the token

To create an API token, follow these steps:

...

注意:生成的令牌永远不会过期。



权限级别

API令牌要求用户登录到他们自己的MAF账户才能创建。

...

生成令牌

要创建API令牌,请按照以下步骤进行:

  1. 访问 http://dev.portal.mafint.com/ as MAF user .

  2. Click ‘My Profile' under 'Settings’ from the navigation sidebar on the left. 

...

  1. In My Profile page, select the API Token tab.

...

  1. 登录为MAF用户。

  2. 点击左侧导航栏中的“设置”,在“设置”下选择“个人资料”。

...

  1. 在我的资料页面,选择API Token选项卡。

...

  1. 点击 Generate New API Token .The new token will be generated, the token can be copied by clicking the copy icon for further use.(生成新的API令牌).

  2. 新令牌将被生成,可通过点击复制图标进行复制以备使用。