如何使用 Slack API 和 OAuth2 来注册和验证 android 应用程序?

How to use Slack API and OAuth2 to signup and authenticate for an android app?

我想模仿 "Sign Up with Facebook" 的功能,但使用 Slack,使用他们的 API 和 Oauth2。

以前有人做过吗and/or这可能吗?

Here are the docs for authenticating against the Slack API.

然后使用auth.test endpoint获取当前用户的ID。

最后,您调用 users.info endpoint 以获取用户的电子邮件、名字和姓氏。