Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
flask-appear-in.py
requirements.txt

README.md

Appear.in with Flask

This is a simple implementation of a slash integration to create a link to appear.in when the slash command is called with an argument.

Usage

/slash username

Will change the text to https://appear.in/username

Implementation

It uses Python2.7+ and Flask to implement a simple server to listen to the requests.

To get it up and running you have to install all the dependencies:

pip install -r requirements.txt

and run the server:

python flask-appear-in.py

It should run the server and display some debugging information like this:

* Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
* Restarting with stat
* Debugger is active!
* Debugger PIN: [...]

Testing the integration

We recommend to use ngrok to tunnel external requests to your own local server. It already provides HTTPS for your integration out of the box. Please read their documentation to know how to install and configure it.

When installed, run it pointing to the port your server is running:

ngrok http 5000

It will give you the https address to use as your Outgoing webhook URL (you can create it here).