Last active
March 13, 2017 19:01
-
-
Save joxz/39f597ae7b8876e2362fbcd204db7a10 to your computer and use it in GitHub Desktop.
Netsight alarm to Cisco Spark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
request_body=$(cat <<EOF | |
{ | |
"roomId" : "{{roomid}}", | |
"markdown" : "$*" | |
} | |
EOF | |
) | |
curl -X POST --insecure --proxy "http://name:[email protected]:80" -H "Content-Type: application/json" -H "Authorization: Bearer {{APIKEY}}" -d "$request_body" "https://api.ciscospark.com/v1/messages" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment