Say hello
GET or POST https://fists.azurewebsites.net/api/fists
Say hello to my friends Mortar and Pestle
Assuming you've bound /fists
to this app, there are two primary uses
/fists
Chooses one of the random fist pairs and returns it
/fists leftFist, rightFist
/fists leftFist and rightFist
Uses the provided fists
This is a proof-of-concept Slack app. It serves little actual purpose, but it is fun.
dotnet run
Get
curl -k "https://localhost:5001/api/fists"
Post
curl -k -X POST -H "content-type: application/x-www-form-urlencoded" -d "text=one+and+two" "https://localhost:5001/api/fists"
Post to WebHook
curl -k -X POST -H "content-type: application/x-www-form-urlencoded" -d "text=one+and+two" "https://localhost:5001/api/fists/WebHook"
Note:
To use WebHook, you need to set the environment variable WEBHOOKURL before you dotnet run
export WEBHOOKURL="https://hooks.slack.com/services/[YOUR/WEBHOOK/URL]"
dotnet run
set WEBHOOKURL=https://hooks.slack.com/services/[YOUR/WEBHOOK/URL]
dotnet run
If a fist is set to "random", then it will be replaced with a CRNG-generated string.