Posts

Showing posts from January, 2017

Message Sending API (Unofficial) for Way2SMS [ PHP ]

Recently I looked through the website http://site24.way2sms.com/content/index.html  and mapped the parameter which were used used in get and post forms. By using the Curl library i was able to send messages through Command Line  for free . For mapping the get and post parameters , I used Developer Tools in Chrome . Below i'm sharing the snippets of my php library for way2sms  so that anyone could be able to send messages on mobile by using this easy to use API. Dependency : Account on Way2SMS Website <?php /** * Created by H$[Hitesh Saini] */ class Way2Sms { //user name of Way2Sms service public static $username ; // password of Way2Sms service public static $password ; //token public static $token; function __construct ($user , $pass) { Way2Sms :: $username = $user; Way2Sms :: $password = $pass; } function init () { $postData = '' ; $url = "http://site24.way2sms.com/Login1.action...