slackapi / onboarding-example

A demonstration of how to build an onboarding app using Slack's Events API
99 stars 23 forks source link

Add To Slack? #1

Open srbartlett opened 8 years ago

srbartlett commented 8 years ago

Nice simple example but does the app connect to a Slack team?

I've setup the app as per the instructions but there isn't any behaviour to "Add to Slack".

Any suggestions on the simplest way to achieve this?

johnagan commented 8 years ago

Hi @srbartlett 👋

I'm not sure what you mean by "connect to a Slack team". This is meant to be a disconnected architecture. For example, if you were to use AWS Lambda. So the only connection points would be the url to your server on the subscriptions page.

I'm not sure if this helps or not - let me know 😎

cpenarrieta commented 8 years ago

Is there a reason why we don't use the Client ID and Client Secret? I'm trying to setup this from scratch with a brand new app and I'm not able to make it work. Do I need an additional OAuth implementation? I'm trying to use this token btw image

johnagan commented 8 years ago

Hi @cpenarrieta 👋

The scope of this is only to demonstrate the Events API. Setting up a server to manage the OAuth flow would require a bit more work, such as setting up the additional endpoints and storage to manage tokens.

For the sake of the demo, I kept the implementation focused on just the events.

j commented 8 years ago

I too was trying to do something similar to what this does. I created an app only for the use of event subscriptions as well as bot events for use within a Lambda environment. I create the events, it's active, my URL is verified, but the url never gets executed on the events.

Is there any more we need to do to get this? I believe this question from this issue is regarding the same thing.

I'm getting the filling that auth is needed even for using events?

/cc @johnagan @srbartlett

johnagan commented 8 years ago

@j first of all - mad props on the single character name 👏

The only thing you may have missed is ensuring you have the correct scopes setup.

j commented 8 years ago

@johnagan 😛 Thanks!

I only tried to get it working for a few minutes. I'll toy around with it. I just thought scopes weren't needed since it was mentioned that this example doesn't need auth set up.

Will report back to help the others.

TBemrose commented 7 years ago

I've spent literally HALF A DAY on this. The api.slack.com unhelp pages go on and on and on and on and on about what I can do, but never how.

Every single tutorial or even actual-code repositories say "npm install", but I can't even find WHERE to put the code, let alone where to run install commands after the files are there. 😡