Skip to content

Instantly share code, notes, and snippets.

@pswincom-examples
Created December 13, 2013 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pswincom-examples/7941546 to your computer and use it in GitHub Desktop.
Save pswincom-examples/7941546 to your computer and use it in GitHub Desktop.
Simple example for powershell
$req = (New-Object System.Net.WebClient)
$req.Headers.Add("Content-Type", "application/xml")
$req.UploadString("http://sms3.pswin.com/sms", "<?xml version=""1.0""?>
<SESSION>
<CLIENT>myusername</CLIENT>
<PW>mypassword</PW>
<MSGLST>
<MSG>
<TEXT>Test message</TEXT>
<RCV>4799999999</RCV>
</MSG>
</MSGLST>
</SESSION>"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment