Skip to content

Instantly share code, notes, and snippets.

@haseebr
Last active August 29, 2015 14:23
Show Gist options
  • Save haseebr/069cb1a16b78c306d424 to your computer and use it in GitHub Desktop.
Save haseebr/069cb1a16b78c306d424 to your computer and use it in GitHub Desktop.
Send a SMS via Plivo API and Powershell
$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