Created
August 25, 2011 19:42
-
-
Save aaronlerch/1171640 to your computer and use it in GitHub Desktop.
Calling Twilio from Powershell
This file contains hidden or 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
[System.Reflection.Assembly]::LoadFile("path to twilio assembly") | out-null | |
$twilio = new-object Twilio.TwilioRestClient("accountSid", "authToken") | |
$msg = $twilio.SendSmsMessage("+15551112222", "+15553334444", "Can you believe it's this easy to send an SMS?!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One fix, in Powershell v2, instead of [System.Reflection.Assembly]::LoadFile("path to twilio assembly") | out-null, you can use Add-Type -path "path to twilio assembly".