creating custom slack integrations with vapor

46
CREATING CUSTOM SLACK INTEGRATIONS WITH VAPOR 1

Upload: kelii-martin

Post on 25-Jan-2017

85 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Creating Custom Slack Integrations with Vapor

CREATING CUSTOM SLACK INTEGRATIONS WITH VAPOR

1

Page 2: Creating Custom Slack Integrations with Vapor

WHAT IS VAPOR?

2

Page 3: Creating Custom Slack Integrations with Vapor

WHAT IS VAPOR?

3

Page 4: Creating Custom Slack Integrations with Vapor

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

WHAT IS VAPOR?

▸ Vapor is a collection of open source, Swift 3 modules for building web apps

3

Page 6: Creating Custom Slack Integrations with Vapor

Source: https://youtu.be/G_dUwkhZst0

4

Page 7: Creating Custom Slack Integrations with Vapor

WHY VAPOR?

5

Page 8: Creating Custom Slack Integrations with Vapor

WHY VAPOR?

6

Page 9: Creating Custom Slack Integrations with Vapor

WHY VAPOR?

▸ Swift is AWESOME!

6

Page 10: Creating Custom Slack Integrations with Vapor

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

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

WHAT IS SLACK?

7

Page 13: Creating Custom Slack Integrations with Vapor

WHAT IS SLACK?

8

Page 14: Creating Custom Slack Integrations with Vapor

WHAT IS SLACK?

▸ Slack is a team communications tool

8

Page 15: Creating Custom Slack Integrations with Vapor

WHAT IS SLACK?

▸ Slack is a team communications tool

▸ https://orlandodevs.slack.com/

8

Page 16: Creating Custom Slack Integrations with Vapor

WHAT DO I NEED TO DEVELOP WITH VAPOR?

9

Page 17: Creating Custom Slack Integrations with Vapor

TEXT

WHAT DO I NEED TO DEVELOP WITH VAPOR?

10

Page 19: Creating Custom Slack Integrations with Vapor

TEXT

WHAT DO I NEED TO DEVELOP WITH VAPOR?▸ Swift 3

▸ macOS - Xcode 8

10

Page 20: Creating Custom Slack Integrations with Vapor

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

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

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

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

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

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

SLACK DEVELOPMENT BASICS

11

Page 27: Creating Custom Slack Integrations with Vapor

SLACK DEVELOPMENT BASICS

12

Page 28: Creating Custom Slack Integrations with Vapor

SLACK DEVELOPMENT BASICS

▸ Types of Custom Integrations

12

Page 29: Creating Custom Slack Integrations with Vapor

SLACK DEVELOPMENT BASICS

▸ Types of Custom Integrations

▸ Incoming/Outgoing Webhooks

12

Page 30: Creating Custom Slack Integrations with Vapor

SLACK DEVELOPMENT BASICS

▸ Types of Custom Integrations

▸ Incoming/Outgoing Webhooks

12

Page 31: Creating Custom Slack Integrations with Vapor

SLACK DEVELOPMENT BASICS

▸ Types of Custom Integrations

▸ Incoming/Outgoing Webhooks

▸ Bot Users

12

Page 32: Creating Custom Slack Integrations with Vapor

SLACK DEVELOPMENT BASICS

▸ Types of Custom Integrations

▸ Incoming/Outgoing Webhooks

▸ Bot Users

▸ Slash Commands

12

Page 33: Creating Custom Slack Integrations with Vapor

SLACK DEVELOPMENT BASICS

▸ Types of Custom Integrations

▸ Incoming/Outgoing Webhooks

▸ Bot Users

▸ Slash Commands

12

Page 34: Creating Custom Slack Integrations with Vapor

SLACK MESSAGES

13

Page 35: Creating Custom Slack Integrations with Vapor

SLACK MESSAGES

▸ Basic message format:{“text”:“Thisistext”,“response_type”:“ephemeral”}

13

Page 36: Creating Custom Slack Integrations with Vapor

SLACK MESSAGES

▸ Basic message format:{“text”:“Thisistext”,“response_type”:“ephemeral”}

13

Page 37: Creating Custom Slack Integrations with Vapor

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

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

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

LESSONS LEARNED

14

Page 41: Creating Custom Slack Integrations with Vapor

LESSONS LEARNED

15

Page 42: Creating Custom Slack Integrations with Vapor

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

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

REFERENCES

16

Page 45: Creating Custom Slack Integrations with Vapor

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

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