![]() ![]() If you've used other Slack APIs before, such as the Web or Events APIs, the Audit Logs will be familiar but also a bit different. These methods will also return standard HTTP status codes to indicate success (or failure). ![]() Review Slack’s full list of OAuth scopes. The Audit Logs API is RESTful and, being read-only, uses a single HTTP verb GET to query and retrieve information. The scopes are determined by the functionality of the app – every method you wish to access has a corresponding scope and your app will need to request that scope in order to be able to access the method. Yes, the process also generates OAuth access tokens but when you install your app from the button in the admin page, the Slack server-side does everything for you, so that your Bolt apps OAuth flow is never used. The client ID and client secret are available from your app’s configuration page. To do this, go to the Slack API website and click the Create an App button. To configure your app for OAuth, you’ll need a client ID, a client secret, and a set of one or more scopes that will be applied to the token once it is granted. Next, set up your Slack OAuth token for authentication. (The OAuth exchange is facilitated via HTTP and requires a webserver in this example, we’ll use Flask.) You can read more about how Slack handles Oauth. If you intend for an app to be installed on multiple Slack workspaces, you will need to handle this installation via the industry-standard OAuth protocol. Your workspace for changes to take effect.įor additional information, see the Installing Apps of our Building Slack apps page. If you add new permission scopes or Slack app features after an app has been installed, you must reinstall the app to Scroll back to the top of this page and look for the button that says Install App to Workspace (or Reinstall App if you've done this before). The apps published are ones that our review team determine to be high-quality, reliable, and useful. Scroll down to the Scopes section, and pick channels:read and channels:history from the drop down menu. Once you’ve setup your features, click on the Install App to Team button found on the Install App page. The Slack App Directory helps users discover apps. If you’re building an application for a single Slack workspace, there’s no need to build out the entire OAuth flow. environ įor additional information, please see our Safely Storing Credentials page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |