gergm.blogg.se

Post gif in slack
Post gif in slack





In order to find a valid Slack conversation ID, we'll use the conversations.list API method. If you really have to, then at least create a new, empty public channel within the workspace, for testing purposes. We'll remind you again - it's not a good idea to attempt the instructions in this guide with a real, living workspace. This could be any Slack conversation, but we'll use a public channel in this guide. Now we need to find somewhere within your workspace that we'll send a message. Grab this token and store it for later, as we'll use that token to make some Web API calls. On the OAuth & Permissions settings page you're brought back to, you should now see an OAuth access token available. If you had already installed your app to its original workspace before, you might still see the permissions screen if the scopes you just added weren't previously granted to your app.Īuthorize your app and you should see a success message. You'll now see a permission request screen to install your app to its original workspace.

  • 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).
  • post gif in slack

  • Scroll down to the Scopes section, and pick channels:read and chat:write from the drop down menu.
  • In the navigation menu, choose the OAuth & Permissions feature.
  • Load up the settings for your app from the app management page.
  • This one grants permission for your app to send messages as itself (apps can send messages as users or bot users, but we'll cover that later). If you already know the ID of the channel you wish to send messages to, you can skip out on requesting channels:read. That scope lets your app retrieve a list of all the public channels in a workspace so that you can pick one to publish a message to. There are lots of scopes available, and you can read our OAuth guide for more information on why they're needed, and what they do.įor the purposes of this guide, however, we'll skip over that and just tell you the permissions we need right now. You will have to grant your app the correct scopes that are required in order for you to publish messages. Requesting the necessary permissionsĮach Slack app starts off without permission to do very much at all.

    post gif in slack

    Make sure you create the app in a workspace that won't mind you posting lots of test messages!Īfter you've done that, come back here and keep reading. If you don't have one yet, here's a very quick guide to help you create one. One thing you'll need before starting is a Slack app. This guide will help you learn a basic way to accomplish this, and show you the paths you can take to make things complex and interactive.

    post gif in slack

    Give your app the gift of dialogue by setting it up to send Slack messages. Apps that only 'listen' can be useful, but there's so much more utility to explore by transforming a monologue into a conversation.







    Post gif in slack