Created
October 31, 2017 16:59
-
-
Save tomfanning/ff9c13ac4f116ceab70976ee8061edec to your computer and use it in GitHub Desktop.
Quick and dirty powershell-to-glip webhook function
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
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