Skip to content

Instantly share code, notes, and snippets.

@aaronlerch
Created August 25, 2011 19:42
Show Gist options
  • Save aaronlerch/1171640 to your computer and use it in GitHub Desktop.
Save aaronlerch/1171640 to your computer and use it in GitHub Desktop.
Calling Twilio from Powershell
[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?!")
@drmohundro
Copy link

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment