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

Slack invite as guest user #31

Open
jtagcat opened this issue Dec 17, 2019 · 3 comments
Open

Slack invite as guest user #31

jtagcat opened this issue Dec 17, 2019 · 3 comments

Comments

@jtagcat
Copy link

jtagcat commented Dec 17, 2019

Ability to invite as a single-channel guest to an user defined channel. Single channel guests are not billed, great for leaving the form on your front page.

@flexd
Copy link
Owner

flexd commented Dec 17, 2019

Feel free to make a pull request. But it has to be something you can turn on/off. Off by default

@jtagcat
Copy link
Author

jtagcat commented Dec 17, 2019

Yeah I was attempting to start to do that, but gave up on doing it today, since slackinviter uses a 3rd party api (go lib), what uses an undocumented api call, rather than an official one to invite users... So documenting an undocumented documentation, documenting the go lib and PR to it in order to fully use the undocumated unofficial api, then come back to this and add a toggle for restricted and ultra_restricted user, then channel(s) to invite to, on backend figure out how many or 0 channels to invite to and go through the go slack api again to find a way to invite users a channel and somehow meanwhile test, that restricted users don't get invited to the default channels.
Good job with quite small amounts of documentation and using unofficial libs, what rely on unofficial undocumented api calls 👏

@flexd
Copy link
Owner

flexd commented Dec 17, 2019

This project is almost 4 years old, and still works as expected for my use case, which is to run the invite for the Gophers Slack :-)

github.com/nlopes/slack is pretty much the defacto way of using the Slack API from Go last time I checked. See https://api.slack.com/community

You can probably use one of the methods here, https://github.com/nlopes/slack/blob/ddf01ed441a61cc9452f390e4e41274a03ba1796/admin.go#L42
https://godoc.org/github.com/nlopes/slack#Client.InviteGuest

I agree it could be better documented, feel free to improve on that.

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

2 participants