/httpass

Primary LanguageJavaScript

HTTPass

Execute curl-like functions from slack. Test of slash-command integrations with Slack.

Usage

Valid commands:

/httpass https://google.com

/httpass GET https://google.com

/httpass POST https://someapi.com/api

/httpass POST https://someapi.com/api -p {this is a json payload}

/httpass POST https://someapi.com/api -payload {this is a json payload}

/httpass POST https://someapi.com/api -h {this is a json of some headers}

/httpass POST https://someapi.com/api -headers {this is a json of some headers}

/httpass POST https://someapi.com/api -p {this is a json payload} -h {this is a json of some headers}

/httpass POST https://someapi.com/api -h {this is a json of some headers} -p {this is a json payload}

Guide

Add slash-command integration to slack:

Step 1.

Open up local port by running npm run localtunnel, copy link provided. Localtunnel provides access to your computers local port to the outside world so you don't need to host this guy.

Run node index.js in a different terminal.

Go to Slack's slash-commands, create a new slash command.

In the integration settings add in link generated by localtunnel.

Integration Settings

Set up the autocomplete

Autocomplete Settings

Give it a whirl!