Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please explain where to obtain the botId #196

Closed
4 of 9 tasks
st3fan opened this issue May 19, 2019 · 3 comments
Closed
4 of 9 tasks

Please explain where to obtain the botId #196

st3fan opened this issue May 19, 2019 · 3 comments

Comments

@st3fan
Copy link

st3fan commented May 19, 2019

Description

The Authentication documentation talks about the authorize function needing to return both a botUserId and a botId. The first is easily obtained from the OAuth flow, but the second is a bit of a mystery. The concept of a Bot ID cannot be found of slack.dev - google search for both botId and bot_id return nothing useful.

Can this please be clarified in the documentation?

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.
@st3fan st3fan changed the title Explain where to obtain a botId Please explain where to obtain a botId May 19, 2019
@st3fan st3fan changed the title Please explain where to obtain a botId Please explain where to obtain the botId May 19, 2019
@st3fan
Copy link
Author

st3fan commented May 19, 2019

I'm closing this because I think I figured this out.

@st3fan st3fan closed this as completed May 19, 2019
@davestimpert
Copy link

Can you share your answer?

@mitsutaka-takeda
Copy link

During oauth flow, we can get botUserId and botAccessToken via the method oauth.access.

Use the token to request users.info of that bot, i.e, pass the botUserId as the user argument. You can find botId at the property of the response at user.profile.bot_id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants