Skip to content

Instantly share code, notes, and snippets.

View pswincom-examples's full-sized avatar

pswincom-examples

View GitHub Profile
@pswincom-examples
pswincom-examples / simpleexample.node.js
Last active December 31, 2015 05:29
Simple example for node.js
var https = require('https');
var post_data = "<?xml version=\"1.0\"?>\
<SESSION>\
<CLIENT>myusername</CLIENT>\
<PW>mypassword</PW>\
<MSGLST>\
<MSG>\
<TEXT>Test message</TEXT>\
<RCV>4799999999</RCV>\
@pswincom-examples
pswincom-examples / simpleexample.php
Created December 13, 2013 08:55
Simple example for php
<?php
$url = "http://sms3.pswin.com/sms";
$doc = <<<XML
<?xml version="1.0"?>
<SESSION>
<CLIENT>myusername</CLIENT>
<PW>mypassword</PW>
<MSGLST>
<MSG>
@pswincom-examples
pswincom-examples / simpleexample.ps1
Created December 13, 2013 08:54
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>
@pswincom-examples
pswincom-examples / simpleexample.cs
Created December 13, 2013 08:52
Simple example for XML HTTP POST
//XML HTTP POST
var req = new 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>