Giter Club home page Giter Club logo

webtask-slash-google-directions's Introduction

Slash Webtask Used To Display Directions Within Slack

Webtask used to provide directions within Slack using the Google Directions API.

Setup

Login to Webtask

Install on your Slack team

Generate a Google Direction API Key

Create a new webtask within Slack

After you have installed Slash Webtasks on your Slack team, you can create the directions webtask by typing the following as a Slack message within any Slack channel:

/wt make directions

Add the Webtask

Once the Webtask has been successfully created click the "Edit it in Webtask Editor" link within the Slack message. Within the editor copy and paste the contents of the webtask-slash-google-directions.js file. Next save the Webtask using the save button near the top right of the editor (CTRL+s).

Add the Google API Key

In order to successfully authenticate with the directions API a Google Directions API Key is needed. Once you have created a key it needs to be added using the Webtask editor.

To do this you can click the wrench icon near the upper left hand corner of the editor and selecting Secrets. Once the secrets UI is displayed click add secret and add the following key/value:

Secret Key: 'GOOGLE_API_KEY'
Secret Value: '${YOUR_GOOGLE_API_KEY}'

Hit the save button (CTRL+s) for good measure and you Webtask setup is complete.

Usage

Make sure you are within Slack and you have the webtask Slack add on installed on your Slack channel then type the following command within the Slack message input:

/wt directions <origin> to <destination>

If you followed the setup correctly this Webtask should respond with a list of directions.

Resources

Webtask

Webtask Slack

Auth0/Slash

Google Directions API

webtask-slash-google-directions's People

Contributors

demelvin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.