GithubHelp home page GithubHelp logo

spiffy2006 / slack-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deseretdigital/slack-api

0.0 0.0 0.0 495 KB

A stateless slack api for sending info to slack

JavaScript 81.96% Dockerfile 18.04%

slack-api's Introduction

Slack bot api

What?

Some times we need to send a message to slack and this api will send a message for you!

Pre reqs?

So, in order to use this api there are a few requirements.

  • You must send the Content-Type header as application/vnd.api+json, because this api follows the JSON API spec
  • For every request you must also send an additional header called slack-bot-token which is the Bot User OAuth Access Token given with a slack app under "OAth & Permissions"

How do I use it?

There are only 2 endpoints

  • GET / is just a friendly message Status: 200
{
    "data": {
        message: 'Welcome to the slack api microservice.'
    }
}
  • POST / which is basically just a wrapper around slack's chat.postMessage endpoint Status: 200
{
    "data": {...slackresponse}
}

slack-api's People

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.