Skip to content

Instantly share code, notes, and snippets.

@joxz
Last active March 13, 2017 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joxz/39f597ae7b8876e2362fbcd204db7a10 to your computer and use it in GitHub Desktop.
Save joxz/39f597ae7b8876e2362fbcd204db7a10 to your computer and use it in GitHub Desktop.
Netsight alarm to Cisco Spark
#!/bin/bash
request_body=$(cat <<EOF
{
"roomId" : "{{roomid}}",
"markdown" : "$*"
}
EOF
)
curl -X POST --insecure --proxy "http://name:pw@proxy.net: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