Questions tagged [slack-api]

Slack is a real-time messaging, archiving and search tool for modern teams. Use this tag for programming questions related to the Slack API including the Web API, the RTM API and the Events API.

Slack is a real-time messaging, archiving and search tool for modern teams.

Use this tag for programming questions related to the Slack API including the Web API and the Events API.

Read more about the Slack API here.

2911 questions
6
votes
3 answers

Using slack API: "Module slack has no attribute WebClient "

I try to use the slack API to send a message to a workspace, I found this piece of code on their docs but I have an issue with the module slack. This is the code I used: import os import slack client =…
Viktor.w
  • 1,787
  • 2
  • 20
  • 46
6
votes
1 answer

What is a 'redirect URL' to distribute Slack bot?

I created a Python Slack bot hosted on Heroku (which works well on my personal workspace) but now wish to distribute it to other workspaces. On the Slack 'manage distributions' page it requests at least one redirect URL. I do not understand what…
Legion
  • 454
  • 2
  • 7
  • 17
6
votes
1 answer

Slack: Is there a way to work in development or production environment?

So, I've been integrating Slack into my back end lately and I noticed that it's getting kind of super annoying to work in development and/or production. Mainly because there does not seem to be a way to switch between environments so I was wondering…
Stefan Falk
  • 23,898
  • 50
  • 191
  • 378
6
votes
2 answers

Pulling historical channel messages python

I am attempting to create a small dataset by pulling messages/responses from a slack channel I am a part of. I would like to use python to pull the data from the channel however I am having trouble figuring out my api key. I have created an app on…
PDPDPDPD
  • 445
  • 5
  • 16
6
votes
0 answers

Android to Slack sharing issue

I found an issue with sharing text messages to slack, here the simple code: String content = "500 wert wert wert wert wert wert ewrt wert ewr tiwert uiweryt weuryt werytuiweyrt yweuritiuwertywerui twerytu weuirty uwerytuweurityuiwer tuiwery…
Siarhei
  • 2,358
  • 3
  • 27
  • 63
6
votes
2 answers

JSON post request to slack returns invalid_auth

I'm trying to open a dialog in slack through a google app script after the user presses a button but i'm getting the following error…
6
votes
1 answer

Slack bot interactive message payload not accessible

I have made a slack app that is hooked up to send a payload to my server upon a press of a button. When the button is pressed, the payload is received by the server, which includes a JSON object, with a layout like this: { …
JC1
  • 849
  • 13
  • 25
6
votes
1 answer

Delete interactive message (command response) just with Slack Commands API

So I'm building a slack app in Node that responds to some user commands. It usually responds with an interactive message that has some attachments and buttons. For certain buttons, I return different types of texts or other attachments, but I also…
Raul Rene
  • 10,014
  • 9
  • 53
  • 75
6
votes
1 answer

Is the message ts the ID of the message?

I am trying to build an app that syncs a forum with slack. Posting on either site will reflect on the site, but I need the ID of messages in Slack. The Slack Documentation says that the text property is the text spoken, and ts is the unique…
Devin Dixon
  • 11,553
  • 24
  • 86
  • 167
6
votes
0 answers

Why slack gives me invalid trigger error?

Trying to send a dialog to slack channel via the dialog.open api, but always get the error: trigger id 305394181715.285081825728.e91e087e5199b235c8678aeaaedf6450 type of trigger id string { ok: false, error: 'invalid_trigger', …
Psidom
  • 209,562
  • 33
  • 339
  • 356
6
votes
1 answer

Slack bot permission to delete a message

I'm writing a bot that will make some channels read-only for most users except for a group of admins. This means the bot needs permission to delete users' messages. When I try to delete a message with the bot, I get a cant_delete_message back. I…
duality_
  • 17,738
  • 23
  • 77
  • 95
6
votes
3 answers

How do I download images form Slack, by php or wget

I am trying to download images from a Slack channel by the following code, but I just get the html code of the page. Am I doing something silly, or they have a trick to make this…
mario
  • 622
  • 1
  • 11
  • 31
6
votes
1 answer

"Sign in with Slack" keeps prompting user for permission every time

I'm doing the Slack integration for my website, including allowing users to log in using the "Sign in with Slack" button. Ideally I would expect it only asks users to grant the identity.* permissions once, then next times when they click "Sign in…
KwiZ
  • 1,364
  • 2
  • 15
  • 25
6
votes
2 answers

How to read incoming slack messages?

A report is posted every 5 hrs on a Slack channel, from which we need to sort/filter some information and put it into a file. So, is there any way to read the channel continuously or run some command every 5 minutes or so before that time, and…
user3561766
  • 101
  • 1
  • 1
  • 9
6
votes
2 answers

How to integrate internal APIs (Not accessible outside office network) to slack slash commands

I am trying to use slash commands to my one of the slack channel. I tried to do a POC using git API and it worked fine. I first created a slash command from this link : https://api.slack.com/censored/slash-commands Commnad: /poc Request URL:…
undefined
  • 3,464
  • 11
  • 48
  • 90