Skip to content

Instantly share code, notes, and snippets.

@tomfanning
Created October 31, 2017 16:59
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 tomfanning/ff9c13ac4f116ceab70976ee8061edec to your computer and use it in GitHub Desktop.
Save tomfanning/ff9c13ac4f116ceab70976ee8061edec to your computer and use it in GitHub Desktop.
Quick and dirty powershell-to-glip webhook function
function Send-Glip {
$msg = $args[0].Replace("`"", "\`"")
$body='{"body":"' + $msg + '"}'
iwr https://hooks.glip.com/webhook/webhook-guid-here -method post -ContentType application/json -body $body > out-null
}
# Usage:
# send-glip "Message to send"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment