Creating Custom Slack Integrations with Vapor
-
Upload
kelii-martin -
Category
Technology
-
view
85 -
download
1
Transcript of Creating Custom Slack Integrations with Vapor
![Page 1: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/1.jpg)
CREATING CUSTOM SLACK INTEGRATIONS WITH VAPOR
1
![Page 2: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/2.jpg)
WHAT IS VAPOR?
2
![Page 3: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/3.jpg)
WHAT IS VAPOR?
3
![Page 4: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/4.jpg)
WHAT IS VAPOR?
▸ Vapor is a collection of open source, Swift 3 modules for building web apps
3
![Page 5: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/5.jpg)
WHAT IS VAPOR?
▸ Vapor is a collection of open source, Swift 3 modules for building web apps
3
![Page 7: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/7.jpg)
WHY VAPOR?
5
![Page 8: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/8.jpg)
WHY VAPOR?
6
![Page 9: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/9.jpg)
WHY VAPOR?
▸ Swift is AWESOME!
6
![Page 10: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/10.jpg)
WHY VAPOR?
▸ Swift is AWESOME!
▸ Nice option for iOS dev to create their own back-end
6
![Page 11: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/11.jpg)
WHY VAPOR?
▸ Swift is AWESOME!
▸ Nice option for iOS dev to create their own back-end
▸ It’s fast
6
![Page 12: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/12.jpg)
WHAT IS SLACK?
7
![Page 13: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/13.jpg)
WHAT IS SLACK?
8
![Page 15: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/15.jpg)
WHAT IS SLACK?
▸ Slack is a team communications tool
▸ https://orlandodevs.slack.com/
8
![Page 16: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/16.jpg)
WHAT DO I NEED TO DEVELOP WITH VAPOR?
9
![Page 17: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/17.jpg)
TEXT
WHAT DO I NEED TO DEVELOP WITH VAPOR?
10
![Page 18: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/18.jpg)
TEXT
WHAT DO I NEED TO DEVELOP WITH VAPOR?▸ Swift 3
10
![Page 19: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/19.jpg)
TEXT
WHAT DO I NEED TO DEVELOP WITH VAPOR?▸ Swift 3
▸ macOS - Xcode 8
10
![Page 20: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/20.jpg)
TEXT
WHAT DO I NEED TO DEVELOP WITH VAPOR?▸ Swift 3
▸ macOS - Xcode 8
▸ Ubuntu - curl-sLswift.vapor.sh/ubuntu|bash
10
![Page 21: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/21.jpg)
TEXT
WHAT DO I NEED TO DEVELOP WITH VAPOR?▸ Swift 3
▸ macOS - Xcode 8
▸ Ubuntu - curl-sLswift.vapor.sh/ubuntu|bash
▸ https://swift.org/getting-started/#installing-swift
10
![Page 22: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/22.jpg)
TEXT
WHAT DO I NEED TO DEVELOP WITH VAPOR?▸ Swift 3
▸ macOS - Xcode 8
▸ Ubuntu - curl-sLswift.vapor.sh/ubuntu|bash
▸ https://swift.org/getting-started/#installing-swift
▸ curl-sLcheck.vapor.sh|bash
10
![Page 23: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/23.jpg)
TEXT
WHAT DO I NEED TO DEVELOP WITH VAPOR?▸ Swift 3
▸ macOS - Xcode 8
▸ Ubuntu - curl-sLswift.vapor.sh/ubuntu|bash
▸ https://swift.org/getting-started/#installing-swift
▸ curl-sLcheck.vapor.sh|bash
▸ Vapor Toolbox
10
![Page 24: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/24.jpg)
TEXT
WHAT DO I NEED TO DEVELOP WITH VAPOR?▸ Swift 3
▸ macOS - Xcode 8
▸ Ubuntu - curl-sLswift.vapor.sh/ubuntu|bash
▸ https://swift.org/getting-started/#installing-swift
▸ curl-sLcheck.vapor.sh|bash
▸ Vapor Toolbox
▸ curl-sLtoolbox.vapor.sh|bash
10
![Page 25: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/25.jpg)
TEXT
WHAT DO I NEED TO DEVELOP WITH VAPOR?▸ Swift 3
▸ macOS - Xcode 8
▸ Ubuntu - curl-sLswift.vapor.sh/ubuntu|bash
▸ https://swift.org/getting-started/#installing-swift
▸ curl-sLcheck.vapor.sh|bash
▸ Vapor Toolbox
▸ curl-sLtoolbox.vapor.sh|bash
▸ https://vapor.github.io/documentation/getting-started/manual.html
10
![Page 26: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/26.jpg)
SLACK DEVELOPMENT BASICS
11
![Page 27: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/27.jpg)
SLACK DEVELOPMENT BASICS
12
![Page 28: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/28.jpg)
SLACK DEVELOPMENT BASICS
▸ Types of Custom Integrations
12
![Page 29: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/29.jpg)
SLACK DEVELOPMENT BASICS
▸ Types of Custom Integrations
▸ Incoming/Outgoing Webhooks
12
![Page 30: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/30.jpg)
SLACK DEVELOPMENT BASICS
▸ Types of Custom Integrations
▸ Incoming/Outgoing Webhooks
12
![Page 31: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/31.jpg)
SLACK DEVELOPMENT BASICS
▸ Types of Custom Integrations
▸ Incoming/Outgoing Webhooks
▸ Bot Users
12
![Page 32: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/32.jpg)
SLACK DEVELOPMENT BASICS
▸ Types of Custom Integrations
▸ Incoming/Outgoing Webhooks
▸ Bot Users
▸ Slash Commands
12
![Page 33: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/33.jpg)
SLACK DEVELOPMENT BASICS
▸ Types of Custom Integrations
▸ Incoming/Outgoing Webhooks
▸ Bot Users
▸ Slash Commands
12
![Page 34: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/34.jpg)
SLACK MESSAGES
13
![Page 35: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/35.jpg)
SLACK MESSAGES
▸ Basic message format:{“text”:“Thisistext”,“response_type”:“ephemeral”}
13
![Page 36: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/36.jpg)
SLACK MESSAGES
▸ Basic message format:{“text”:“Thisistext”,“response_type”:“ephemeral”}
13
![Page 37: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/37.jpg)
SLACK MESSAGES
▸ Basic message format:{“text”:“Thisistext”,“response_type”:“ephemeral”}
▸ Attachments:{“response_type”:“in_channel”,“attachments”:[{“title”:“Thisisthetitle”, “text”:“Thisistext”,“color”:“#000000”}]}
13
![Page 38: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/38.jpg)
SLACK MESSAGES
▸ Basic message format:{“text”:“Thisistext”,“response_type”:“ephemeral”}
▸ Attachments:{“response_type”:“in_channel”,“attachments”:[{“title”:“Thisisthetitle”, “text”:“Thisistext”,“color”:“#000000”}]}
13
![Page 39: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/39.jpg)
SLACK MESSAGES
▸ Basic message format:{“text”:“Thisistext”,“response_type”:“ephemeral”}
▸ Attachments:{“response_type”:“in_channel”,“attachments”:[{“title”:“Thisisthetitle”, “text”:“Thisistext”,“color”:“#000000”}]}
▸ https://api.slack.com/docs/messages
13
![Page 40: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/40.jpg)
LESSONS LEARNED
14
![Page 41: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/41.jpg)
LESSONS LEARNED
15
![Page 42: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/42.jpg)
LESSONS LEARNED
▸ You won’t be able to use all the frameworks you’re accustomed to using in iOS development
15
![Page 43: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/43.jpg)
LESSONS LEARNED
▸ You won’t be able to use all the frameworks you’re accustomed to using in iOS development
▸ Testing on both macOS and Linux is essential
15
![Page 44: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/44.jpg)
REFERENCES
16
![Page 45: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/45.jpg)
REFERENCES
▸ Slack API Documentation - https://api.slack.com/
▸ Vapor Documentation - https://docs.vapor.codes
▸ Vapor Slack - http://vapor.team
▸ https://github.com/WERUreo/WeatherSlack/
▸ https://github.com/WERUreo/werureo-slackbots/
16
![Page 46: Creating Custom Slack Integrations with Vapor](https://reader030.fdocuments.in/reader030/viewer/2022020410/58879c481a28ab5b1a8b6d29/html5/thumbnails/46.jpg)
REFERENCES
▸ Slack API Documentation - https://api.slack.com/
▸ Vapor Documentation - https://docs.vapor.codes
▸ Vapor Slack - http://vapor.team
▸ https://github.com/WERUreo/WeatherSlack/
▸ https://github.com/WERUreo/werureo-slackbots/
QUESTIONS?
16