Access Fin through /fin
on Slack.
First step is to set up the Fintegration server itself. Make sure to set the following environment variables:
SLACK_TOKEN
: This will be the token Slack gives you when you create the slash commandFIN_TOKEN
: Your token to access Fin. See the Getting Your Fin Token section below for how to get this.WHITELIST
: A comma separated list of usernames that are allowed to use Fintegration. Ex.zrl,kwok,bruggie
.
Instructions for getting your Fin token (this assumes iOS because Fin is only available on iOS):
- Download Charles Proxy and launch it (https://www.charlesproxy.com)
- Go to
Proxy > SSL Proxying Settings
and then click "Add". Set both the host and port to*
. Click "Add" and then "OK" to confirm and get out of this prompt. - Open http://www.charlesproxy.com/getssl/ on your phone and accept the certificate request. Install it.
- Make sure your phone and your computer are on the same network (and that they're accessible to each other, this won't work at most hotels).
- On your phone, go to
Settings > Wi-Fi
and then click the(i)
button next to your current Wi-Fi network - Scroll to the bottom until you see "HTTP Proxy" and click "Manual"
- Set "Server" to your computer's local IP address (ex. 192.168.0.11). You
can get this with
ifconfig
or by going toHelp > Local IP Address
in Charles. - Set "Port" to
8888
- Open up the Fin app on your phone. You should see a confirmation prompt in Charles. Accept it.
- Open up a few messages threads in the Fin app
- You should see a bunch of HTTPS request to the API flood into Charles. Expand
the ones for
https://www.getfin.com
,api
, andmessages
until you see requests that sayview
. Click on a request forview
. - In the top tab bar on the right, select the "Request" tab
- In the bottom tab bar on the right, select the "Form" tab
- You should see an entry for "token". Double click the token's value to be able to copy and paste it.
- Use Slack's interface to create a
/fin
command. Head over to https://my.slack.com/services/new/slash-commands to do that. Take note of the token field, you'll want to setSLACK_TOKEN
to this in Integration. - Set the
URL
field to the root URL of Fintegration and make sure Fintegration is running. - Customize the icon to your liking. I like using https://www.fin.com/img/favicon/favicon-196x196.png.
- Try it out! Run
/fin [request]
and you should see your request show up in-app.
Fintegration is licensed under the MIT License. See LICENSE
for
the full license text.