slack-api

How can I add a configuration page for my slack app?

一笑奈何 提交于 2021-02-16 04:43:25
问题 How can I add a configuration page for my slack app? example: asana has an add configuration button which leads to a page which we can use to then connect the slack user account with asana account 回答1: Several Slack apps (e.g. Twitter, Google Calendar) provide a configuration page after installation into Slack. However this feature seams to be available only to commercial partners of Slack, but not as a standard feature for every app developers. Developers need to implement it by themselves

How to get notified when the slack app is installed?

落花浮王杯 提交于 2021-02-05 09:23:05
问题 I have a requirement where I have to do some preliminary setup for my slack-bot. What I want to do is: Get the notification when my slack app is installed to a workspace. Send a private message to the admin of the workspace with instructions/setup manual. I am looking at slack event API docs and it looks like that it does have an app uninstalled event, but nothing related to install. How would I achieve above mentioned goals for my slack bot? Can I do that with event api or do I have to use

Slack bot permission to delete a message

梦想与她 提交于 2021-02-04 17:56:51
问题 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 understand that I need another token, one that starts with xoxp for that (I already have xoxb). I've read a bunch of tutorials and docs on this topic, but I think they mostly don't go well with my use-case: I would not like to create and register an

How can I automate getting an access token from Slack?

最后都变了- 提交于 2021-02-04 06:33:26
问题 I want to make an alert system on Apigee that will automatically send alerts to Slack, without the need for human interference. However, the only OAuth flow for Slack I found on their api site seems to require a user to manually input their credentials: https://api.slack.com/docs/oauth How can I automate getting an access token from Slack, so without having to manually input credentials? 回答1: I think you may have misunderstood the concept of Oauth. The way it is supposed to work is, that you

Sending Cucumber report on slack from jenkins

邮差的信 提交于 2021-01-29 22:02:24
问题 I am trying to send the cucumber reports which are jenerated on jenkins to slack using cucumber-slack-notifier plugin. I have made all the configurations as per the document(It is a free style job). https://plugins.jenkins.io/cucumber-slack-notifier/ My configuration are below System Configuration Job configuration Send Cucumber Report to Slack The cucumber reports are getting generated properly But I am getting below error when cucmber reports are send to slack. ERROR: Build step failed with

Sending Cucumber report on slack from jenkins

让人想犯罪 __ 提交于 2021-01-29 20:50:04
问题 I am trying to send the cucumber reports which are jenerated on jenkins to slack using cucumber-slack-notifier plugin. I have made all the configurations as per the document(It is a free style job). https://plugins.jenkins.io/cucumber-slack-notifier/ My configuration are below System Configuration Job configuration Send Cucumber Report to Slack The cucumber reports are getting generated properly But I am getting below error when cucmber reports are send to slack. ERROR: Build step failed with

VisualSVN and Slack

安稳与你 提交于 2021-01-29 04:12:30
问题 I'm reviewing the slack-visualsvn integration guide and having some trouble here. Slack SVN Integration When you review the example it doesn't give details as to which file I need to change and what variables I need to add, so instead of guessing, I am asking if anyone has done this before and can provide some guidance. I've googled a few times and did not find any real help outside of someone pushing the svn-slack-notifier which is not on the slack integration search. Windows Server 2012 is

Sending command via Slack API

对着背影说爱祢 提交于 2021-01-27 22:15:43
问题 Is there a way to programmatically send a command to Slack via the API? I'm successfully posting a message using var postingResponse = client.UploadValues("https://slack.com/api/chat.postMessage", "POST", new NameValueCollection() { {"token","<token>"}, {"channel","<ID>"}, {"text", "/mycommand hello" }, {"username","<username>" }, {"link_names", "true" }, {"parse", "full" } }); This works well but the /mycommand hello is just printed as text instead of executing as a command. I tried adding a

Sending command via Slack API

試著忘記壹切 提交于 2021-01-27 20:27:37
问题 Is there a way to programmatically send a command to Slack via the API? I'm successfully posting a message using var postingResponse = client.UploadValues("https://slack.com/api/chat.postMessage", "POST", new NameValueCollection() { {"token","<token>"}, {"channel","<ID>"}, {"text", "/mycommand hello" }, {"username","<username>" }, {"link_names", "true" }, {"parse", "full" } }); This works well but the /mycommand hello is just printed as text instead of executing as a command. I tried adding a

Slack + Heroku: Send notification to slack whenever my Heroku app is down

我们两清 提交于 2021-01-27 05:22:18
问题 I have a Heroku app and whenever I deploy on Heroku a notification is received on my production channel at Slack. I wanted to follow the same procedure for my Heroku app going down for any reason. Any recommended way ! 来源: https://stackoverflow.com/questions/45604177/slack-heroku-send-notification-to-slack-whenever-my-heroku-app-is-down