-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Notification service docs: Add the tutorial on how to create the slack workspace #5939
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
code-samples/eventing/bookstore-sample-app/create-workspace.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Notification Service: Creating a Slack Workspace | ||
|
||
## Create a Slack Workspace | ||
|
||
To create a Slack workspace, follow these steps: | ||
|
||
- Visit [https://slack.com/get-started#/createnew](https://slack.com/get-started#/createnew). | ||
- Enter your email address and click Continue, or continue with Apple or Google. | ||
- Check your email for a confirmation code. | ||
- Enter the code on the Slack website. | ||
- Click "Create a Workspace" and follow the prompts. | ||
- For detailed instructions for androids and , refer to [Create a workspace](https://slack.com/help/articles/206845317-Create-a-Slack-workspace). | ||
|
||
## Adding Channels to Your Workspace | ||
|
||
After creating your Slack workspace, you can add channels by following these steps: | ||
|
||
- Click the '+' icon next to 'Channels' on the sidebar of your Slack workspace. | ||
- Choose "Create a channel" and specify the channel name and purpose. | ||
- For enterprise grid organizations, refer to [Slack's help article](https://slack.com/help/articles/115001399587-Add-a-channel-to-multiple-workspaces-in-your-Enterprise-Grid-organization) for instructions. | ||
|
||
## Setting Up a Webhook for Notifications | ||
|
||
To set up a webhook for sending notifications to your Slack workspace: | ||
|
||
- Create a [Slack app](https://api.slack.com/apps/new), following the instructions by signing in, adding name and workspace to put the app in. | ||
- After this, you'll be redirected to the setting pages of your new app. Choose **Incoming Webhook** and toggle **Activate Webhook**. | ||
- Scroll down to click the option **Add New Webhook to Workspace**. | ||
 | ||
- The page will give you a link associated with the app you created. This link will be where API requests are sent to send messages to your Slack workspace. | ||
 | ||
- To test if the webhook works as needed, you can try sending an API request to this link to see if the message goes through. I used Postman to test this. Remember that this is an application/json file. | ||
 | ||
- Afterwards, the text channel should have a new message | ||
 | ||
- Go to [Slack's webhook documentation](https://api.slack.com/messaging/webhooks) to learn more about setting up webhooks. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+222 KB
code-samples/eventing/bookstore-sample-app/screenshots/select-channel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+187 KB
code-samples/eventing/bookstore-sample-app/screenshots/webhooklink.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.