In some cases these changes just will not cut it.
In some cases people may want to send out a batch of invites via a third party tool, mailchimp, boomerang and so on. Many of these platforms are designed for
email spamand provide better feedback and statistics.
In some cases people may want complete control over, subject and body of the email. They may want to include custom copy that differs to the standard email.
To achieve this we need to amend our API endopoint to allow for generation of tokens.
The spec is quite simple:
- Input is the exact same format our CSV invite takes
- Output is a CSV containing emails and invite links
gem install discourse_api discourse_api --key API_KEY --username USER generate_invite_tokens INPUT.CSV > OUPTUT.CSV
Side project here is making the api gem more usable, having it distribute a binary to run all sorts of tasks like this.
@techAPJ will be working on this after he is done with general invite improvements.