Last active
August 29, 2015 14:23
-
-
Save haseebr/069cb1a16b78c306d424 to your computer and use it in GitHub Desktop.
Send a SMS via Plivo API and Powershell
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
$PlivoCredentials = Import-CliXml -Path plivo.key | |
$PlivoJson = @{'src' = '<source>'; 'dst' = '<destination"'; 'text' = '<text'} | ConvertTo-Json | |
$PlivoUri = "https://api.plivo.com/v1/Account/<Key>/Message/" | |
Invoke-WebRequest -Method Post | |
-Uri $PlivoUri | |
-Body $PlivoJson | |
-Credential $PlivoCredentials | |
-ContentType "application/json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment