slack-api

add to slack vs sign in with slack

时间秒杀一切 提交于 2019-12-11 07:42:33
问题 I have added the 'Add to Slack' button to my web project and it works fine like exchanging the code for an access token and redirecting to a URL of my choice. Now, I am a little bit confused between the 'Sign in with Slack' button. I know that it is used to log individual members in. So does it ask for their organization email and password and log them in or is it for logging in existing slack users? Also, as soon as I click on the sign in with slack button it takes me to a page where it asks

How to integrate with slack similar to how google drive did?

♀尐吖头ヾ 提交于 2019-12-11 07:31:54
问题 I had gone through the documentation of slack on how to develop slack app. When i installed google drive slack app i saw that the google drive options(create new file, etc) can be accessed when clicking the '+' button on the left side of send message input. How is this achieved? 回答1: Unfortunately, this feature is not available to all 3rd party developers. In general there is a difference between the features available to all developers and to companies that have develop apps in close

Multiple attachment with single callback_id: slack interactive component

白昼怎懂夜的黑 提交于 2019-12-11 07:29:17
问题 Is it possible to have multiple menu attachment and allow users to select each menu before sending back the collated response? return Promise.resolve({ text: `Rate each game`, attachments: [ ...games.map(game => ({ color: "#5A352D", title: game, callback_id: "game:done", actions: [ { name: "done", text: "Select a score", type: "select", value: "game:done", options: [ { text: 1, value: 1 }, { text: 2, value: 2 } ] } ] })) ] }); This images shows how it renders But, I need to call the callback

Create slack channel using slack app

♀尐吖头ヾ 提交于 2019-12-11 06:19:57
问题 I have a private slack application (developed by user 'X' from team 'XT') I have a web server knows how to complete the Oauth process and generate tokens per teams Now- as a user Y from team YT I am installing the slack app on my YT team and get a token, using that token I perform API call for channels.create , I got into my team (aka YT) and indeed I see that the channel was created , BUT it's written that the channel was created by the specific user that installed the slack app, meaning

Slack logon trigger

≡放荡痞女 提交于 2019-12-11 06:12:41
问题 I want to create something in Slack that sends a message (starting by calling someone with '@') to a channel when specific users login. I've checked ifttt and zapier. I also checked the slack api to create something myself, but I couldn't really find anything usefull. Anyone has any ideas? 回答1: Slack does not track user login or logoff in a traditional sense. Instead, users are always always "logged in" and available to receive messages once they have joined a team / channel. There also is

How to setup buttons with “imBack” type in Slack channel using ms bot builder

时间秒杀一切 提交于 2019-12-11 06:11:47
问题 I've developed few bots using ms botbuilder, there was no problems with Buttons with "imBack" type on Skype, FB, Telegram and web chat. However trying to make it work on Slack i found (and seems like its not documented) that you need extra configuring of Interactive Messages in APP admin panel. So here's my questions regarding this issue: is it true that its the only way? If so what's the real reason for that, everything works just fine in all other channels. Is there a way to setup it

Python can't find installed module ('slackclient')

♀尐吖头ヾ 提交于 2019-12-11 03:23:57
问题 I am trying to build a slack bot for learning purpose but when I run the script get this error ModuleNotFoundError: No module named 'slackclient' I tried install and uninstall and then re-install with python -m pip install slackclient import os import time import re from slackclient import SlackClient # instantiate Slack client slack_client = SlackClient(os.environ.get('SLACK_BOT_TOKEN')) if __name__ == "__main__": if slack_client.rtm_connect(with_team_state=False): print("Starter Bot

Changing status of other users on a free plan Slack

Deadly 提交于 2019-12-11 01:56:01
问题 It always updates my user profile instead of the user that I specify in X-Slack-User: https://slack.com/api/users.profile.set?token=yadayadayada&X-Slack-User=XYZ23456&Content-type=application/json&charset=utf-8&profile={"status_text": "Test #1","status_emoji": ":gb:","status_expiration": "5"} The user Ids that I tried to specify are valid ones, I'm an admin and I created an app with the required rights, the legacy token did no good as well, this works, but just for my user, X-Slack-User is

Send a text to Slack Webhook containing selected user

江枫思渺然 提交于 2019-12-11 01:08:47
问题 I am trying to send a message from Google Apps Script to Slack via a Webhook URL that works great, but I can't figure out how to send a highlighted or selected user in that text. For example '@UsernameTest how are you?' is something I want to send to a person or channel, but it doesn't work. I figured out that to highlight the channel i.e. send '@Channel' I just needed to write , but that is not what I want. I tried <@UserID> but it still didn't work. (I Received the UserID by using inspector

Correct approach to DM many users using Web API

风格不统一 提交于 2019-12-10 22:17:18
问题 I'm creating a Slack application where, in a workspace with thousands of users, I want to DM a subset of these (hundreds) who share no specific channel. I don't see any "batch" method in the Web API, so I was wondering which would be the best approach to achieve this. Should I just loop over the recipients list and DM one by one? What would be the rate limiting implications? thanks in advance! 回答1: There's no batch methods available - you'll have to send each individual user a DM. You may