yannickglt / alfred-slack

The Slack workflow for Alfred app
GNU General Public License v2.0
330 stars 31 forks source link

Where do I get my user token? #16

Closed eibrahim closed 7 years ago

eibrahim commented 7 years ago

According to your documentation and the info at https://api.slack.com/docs/token-types#user, it looks like I need a user token. But I don't see where I can get a user token. I created a slack app but that only has a Verification Token which is not I need.

Thanks for doing this and I can't wait to make it work.

yannickglt commented 7 years ago

Hi! You are right, the way to create tokens in Slack was deprecated and is not available anymore. I released a new version of the Slack workflow (v3.0.0) which handles the new way to add third-party applications working with Slack. You will get more info on the ReadMe on how to generate a unique client code.

eibrahim commented 7 years ago

I tried to generate code at http://yannickglt.github.io/alfred-slack/ and got this error:

OAuth Error: redirect_uri did not match any configured URIs.

Passed URI : http://yannickglt.github.io/alfred-slack/?client_id=3070385995.228667914977
Allowed URI : none specified
eibrahim commented 7 years ago

I figured out the problem. You were missing a step in your instructions where we have to go to the OAuth & Permission section in slack and add a redirect url to http://yannickglt.github.io/alfred-slack

eibrahim commented 7 years ago

hmmm... I am still having problems, when I try step 4, I get this

image

I restarted alfred and same issue.

BTW, I am using alfred 3.

yannickglt commented 7 years ago

You're right. I gonna add it quickly, thanks for reporting! For the issue, what is the list of commands available when you type only slack - -? Could you make a screenshot please?

eibrahim commented 7 years ago

Not at my computer now but I think it either has the same look as above or it just says "start slack workflow" and nothing happens if I click it.

I never got any options or other choices to click

yannickglt commented 7 years ago

OK. Please join the gitter when you will get time and I will try to help you further (if you want of course ^^).