Invite for Apache OpenWhisk Team on Slack

Clone this repo:
  1. ec37a86 Minor edits (#12) by fredster33 · 2 years, 1 month ago master
  2. 3ef69e1 Fix broken 'join slack' url in by Alexandre Nicastro · 5 years ago
  3. bd77380 fixing multiple problems (#8) by Carlos Santana · 6 years ago
  4. 7d2a25d Update index.html (#5) by Matt Rutkowski · 6 years ago
  5. b0e6c5a update wrong label for slack domain (#4) by Carlos Santana · 6 years ago


Simple webpage for invitations for Apache OpenWhisk Slack Community.

Join our Slack:

The backend is implemented as a serverless action with an API gateway route.


Deploy action

Configure the wsk CLI with authentication and host

Create the action using wsk CLI and set default parameters

wsk action create slackinvite action.js -p org "myslackteam" -p slacktoken "xop-12345..."

The org is the Slack team name, usually the hostname from your The slacktoken is a token for a user with admin access. You can get one from Recommend creating a bot user with admin to use for invites.

Verify the action by invoking with the wsk CLI

wsk action invoke slackinvite -p email ""

The action should do a http call to the slack API using the team host and token, then Slack will send the invite to the email provided.

Expose action

Create a public url to invoke the action using wsk CLI

wsk api-experimental create /openwhisk-team /slackinvite GET slackinvite

The command will print the new url created

ok: created api /slackinvite GET for action slackinvite

Verify the exposed url by invoking using the curl CLI or a web browser

curl -X GET

Update index.html

Edit the line var actionUrl = "https://..."; and replace the value with your new url that expose your new action.

Deploy to GitHub Pages

Create a new GitHub repo, then go to settings, and set the master branch as GitHub Pages. Push the modified index.html to the new repo, then your webpage will be accesible from https://$$reponame

License: Apache-2.0