developer API php wrapper class
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

mysms-api-php-wrapper developer API php wrapper class

How to Use


//include mysms class

//API Key

//initialize class with apiKey and AuthToken(if available)
$mysms = new mysms($api_key);

//lets login user to get AuthToken
$login_data = array('msisdn' => '919812345678', 'password' => 'PASSWORD');

$login = $mysms->ApiCall('json', '/user/login', $login_data);  //providing REST type(json/xml), resource from and POST data

print $login;  //debug login data

$user_info = json_decode($login); //decode json string to get AuthToken

$AuthToken = $user_info->authToken;