本文介绍了Slack App,Web API令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我们的Slack工作区,我正在构建一个应用程序,它将使用Web API发送和更新消息。

For our Slack workspace I am building an app that will use the Web API to send and update messages.

但是,当应用程序安装在我们的工作区中时,我找不到身份验证Web API请求所需的令牌。

However, while the app is installed in our workspace I cannot find the token needed to authenticate my Web API requests.

如何向Web API验证应用程序?

How can I authenticate an App to the Web API ?

谢谢

推荐答案

有三种获取令牌的方法。

There are three ways to get a token.


  1. 在向工作区期间,您的应用将
    收到新的

  1. During the installation process to a workspace your app willreceive the newly created token from the API, which you should store for later use.

从API中创建的令牌,您应将该令牌存储起来以备后用。安装后,您可以在(仅适用于内部集成,在
Oauth& Permissions下)

After installation you can look up the token in the adminwindow for your app (only for "internal integrations", under"Oauth & Permissions")

您可以创建。 (那些
并未链接到应用,但链接到了用户。同样,它们仅应将
用于测试)

You can create a legacy token for your workspace. (Those arenot linked to the app, but to the user though. Also they should onlybe used for testing)

这篇关于Slack App,Web API令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 06:53