Skip to content

idragons/mysms-api-php-wrapper

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

mysms-api-php-wrapper

mysms.com developer API php wrapper class

How to Use

<?php

//include mysms class
include_once('class.mysms.php');

//API Key
$api_key = 'REPLACE-WITH-YOURS-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 http://api.mysms.com/index.html and POST data

print $login;  //debug login data

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

$AuthToken = $user_info->authToken;

?>

About

mysms.com developer API php wrapper class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages