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
1
vote
1 answer

Slack export from web api

I have a free plan on slack and, for a bunch of reasons, I regularly download the export zip file from the webpage https://www.slack.com/services/export. Is there a way to export exactly that .zip file through web api? I'll use it from a python…
David
  • 302
  • 3
  • 13
1
vote
0 answers

Posting interactive messages to slack using java

I've been looking at this for a while now. I'm trying to post a message and some buttons to a slack channel using the url for chat.postMessage (https://slack.com/api/chat.postMessage). That is the url stored in the messagePostURL variable. My…
Cody Berry
  • 263
  • 3
  • 14
1
vote
1 answer

Open slack dialog by external app

The slack docs state that dialog's can be invoked using slash commands and buttons. Is there however a way to not use either ? I would want my app to prompt user with a dialog. One option I found possible is to send a button via incoming web hooks…
Sterling Duchess
  • 1,970
  • 16
  • 51
  • 91
1
vote
0 answers

Send slack message as any username

I'm trying to create a new integration to combine slack with another chat system. If someone sends a message from skype for example, I want his name to be used when the message is sent to slack. Right now I'm using IncomingWebhook to send…
AmazingTurtle
  • 1,187
  • 1
  • 15
  • 31
1
vote
1 answer

Ruby append to string if error contains string

I have a Slack Bot that needs to respond in an error condition. If the error has certain text in it, I want to append some additional information to the return message. This block of code works fine if I comment out the message += line but breaks…
1
vote
1 answer

Slack bot not able to communicate after first dialog for other users

I have created a slack bot which works correctly on my machine, I have created prompts in slack bot and when the user clicks on the prompts the dialog(a type of form in slack) opens. Once the dialog is submitted another prompt comes up and…
M.Shaikh
  • 250
  • 1
  • 3
  • 14
1
vote
1 answer

OAuth 2 and the Slack APIs for posting images

First Question: So, I'm attempting to post an image to a specific slack channel using the files.upload API call in the Slack APIs. I have a client_id and a client_secret. I just want this to be used for my team using slack to communicate. Is this…
Cody Berry
  • 263
  • 3
  • 14
1
vote
0 answers

Getting error on calling Channels.history api

This is the api: https://slack.com/api/channels.history Request: token=&channel=(Removing the token and channel name for privacy) Response: { "ok": false, "error": "not_authed" } The token I have provided is correct, can someone tell what…
Maddie
  • 11
  • 3
1
vote
1 answer

Auth::user() not working on redirect

So currently I'm joining together two API services using Laravel Socialite. Both work fine on their own. I want to make it so you can sign in using the 'add to Slack' button and it will store the Slack details on the users table without needing to…
roo
  • 343
  • 1
  • 5
  • 17
1
vote
2 answers

How to upload an image to Slack using node.js on Windows?

I'm trying to upload an image via Slack using node.js and the request package, but not having much luck. Either I receive invalid_array_arg or no_file_data errors from the API. Here is my request: var options = { method: 'POST', url:…
George Profenza
  • 50,687
  • 19
  • 144
  • 218
1
vote
1 answer

Get a user's API key for using in Slack

So I'm building a small Slack bot that I want multiple users to be able to use in different Slack teams. So far the workflow is like this: User signs up on website. User connects with an API provider and receives their OAuth credentials. The access…
roo
  • 343
  • 1
  • 5
  • 17
1
vote
1 answer

Slack polls with HTTP Response

I'm trying to have my backend create a poll for a given user and when the user responds to the poll receive the response on the backend. However I cannot find a way to do the second part with an API available. I know I can use Incoming Webhooks to…
Sterling Duchess
  • 1,970
  • 16
  • 51
  • 91
1
vote
1 answer

How to read channel messages with simple-slack-api?

I'm using simple-slack-api with Java, but I can not find a way to read messages from a specific channel. My code is the following: public void getChannelMessages(String channelName) throws IOException{ SlackChannel channel =…
user5872256
  • 69
  • 11
1
vote
1 answer

How to post about build start into slack?

Can I use slackSend command in jenkins flow dsl if i have Jenkins ver. 1.656. I have enabled Slack Notification Plugin and it works fine in most cases, but i wish to display message when build starts.
mAtsea
  • 47
  • 5
1
vote
1 answer

Botkit - Slack interactive messages

I am trying to get all the values from all actions. Currently I have two select actions (Pick a game and Pick a day). In the interactive_messages_callback I am getting the selected value only of the currently modified select. Is there a way to get…
dallion
  • 195
  • 5
  • 16