跳转至主要内容
CloudStudio

访问令牌

The 访问令牌 allows us to make requests via both HTTP and MQTT, as well as integrate other interfaces such as The Things Network. It is possible to generate as many tokens as needed and assign the required permissions to each one.

To generate an 访问令牌 through the manager, navigate to the side menu and 选择 访问令牌s. The manage 访问令牌s - client window will appear, showing the list of tokens created for that client. Since no tokens have been created yet, 按下 the add button to create a new token.

管理访问令牌界面,含添加按钮和客户令牌列表

Once inside, fill in the 说明 field with the desired name. In the Email and Password fields, 输入 the credentials of your corresponding user, then 按下 Save.

To manage token permissions in a more granular way, it is recommended to create a user exclusively for API usage, or even a different user for each token created.

添加访问令牌表单,含描述、邮箱和密码字段

A confirmation dialog will then appear asking whether you want to create the token with the current username and password. 按下 confirm.

使用当前用户创建令牌时的警告对话框,含确认和取消按钮

Once confirmed, the token will be generated. 按下 Back to return and view the details of the created token.

选择 the added token and choose the 视图 Token option.

令牌列表中打开的上下文菜单及查看访问令牌选项

输入 the username and password.

查看访问令牌对话框,要求输入邮箱和密码以继续

The token is displayed and can now be copied.

查看访问令牌对话框,显示生成的令牌及复制按钮

最后更新于