API

Integration was never so easy

Our API opens the door to billions of subscribers to send messages by their Apps.

Do you need a developer?
Java
Java
Java
Java
Java
Java

Services powered by our API

If you are going to build your own applications and your requirement is bulksms , brandedsms , masked sms and you need a super fast response and better grip in your application then our php rest api is very advance and good.Our docs are such friendly that a normal user can also integrate api with out having deep developer knowledge. Our rest api is best choice for mass submission..

    $url = "http://lifetimesms.com/plain";

	$parameters = [
		"api_token" => "Your API Token",
		"api_secret" => "Your API Secret",
		"to" => "92xxxxxxxxxx",
		"from" => "Lifetimesms",
		"message" => "Testing SMS",
	];

	$ch = curl_init();
	$timeout  =  30;
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);
	curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
	$response = curl_exec($ch);
	curl_close($ch);

	echo $response ;
  $url = "http://lifetimesms.com/xml";

	$parameters = [
		"api_token" => "Your API Token",
		"api_secret" => "Your API Secret",
		"to" => "92xxxxxxxxxx",
		"from" => "Lifetimesms",
		"message" => "Testing SMS",
	];

	$ch = curl_init();
	$timeout  =  30;
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);
	curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
	$response = curl_exec($ch);
	curl_close($ch);

	echo $response ;
  $url = "http://lifetimesms.com/personalized";

	$data = array(
		array("to" => "92xxxxxxxxxx", "message" => "testing"),
		array("to" => "92xxxxxxxxxx", "message" => "testing"),
	);

	$data = json_encode($data);

	$parameters = [
		"api_token" => "Your API Token",
		"api_secret" => "Your API Secret",
		"from" => "Lifetimesms",
		"data" => $data,
	];

	$ch = curl_init();
	$timeout  =  30;
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);
	curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
	$response = curl_exec($ch);
	curl_close($ch);

	echo $response ;
  $url = "http://lifetimesms.com/voice-sms";

	$parameters = [
		"api_token" => "Your API Token",
		"api_secret" => "Your API Secret",
		"to" => "92xxxxxxxxxx",
		"from" => "Lifetimesms",
		"voice_no" => 1,
	];

	$ch = curl_init();
	$timeout  =  30;
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);
	curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
	$response = curl_exec($ch);
	curl_close($ch);

	echo $response ;
  $url = "http://lifetimesms.com/voice-request";

	// For File Upload
	$path = "Path of voice sms file";
	$curl_file = new \CURLFile(realpath($path));

	$parameters = [
		"api_token" => "Your API Token",
		"api_secret" => "Your API Secret",
		"title" => "New Voice Request",
		"file" => $curl_file,
	];

	// For Text To Speech
	$text_to_speech = "This is text to speech for demo.";

	$parameters = [
		"api_token" => "Your API Token",
		"api_secret" => "Your API Secret",
		"title" => "New Voice Request",
		"text_to_speech" => $text_to_speech,
	];

	set_time_limit(0);
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible;)");
	curl_setopt($ch, CURLOPT_HTTPHEADER,array("Content-Type: multipart/form-data"));
	curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);
	curl_setopt($ch, CURLOPT_FORBID_REUSE, 1);
	curl_setopt($ch, CURLOPT_TIMEOUT, 100);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);
	$result = curl_exec ($ch);
	curl_close($ch);

	echo $response ;
  $url = "http://lifetimesms.com/voice-status";

	$parameters = [
		"api_token" => "Your API Token",
		"api_secret" => "Your API Secret",
		"voice_no" => 1,
	];

	$ch = curl_init();
	$timeout  =  30;
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);
	curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
	$response = curl_exec($ch);
	curl_close($ch);

	echo $response ;
$url = "http://lifetimesms.com/network-lookup";

$parameters = [
	"api_token" => "Your API Token",
	"api_secret" => "Your API Secret",
	"phone_number" => "xxxxxxxxx",
];

$ch = curl_init();
$timeout  =  30;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
$response = curl_exec($ch);
curl_close($ch);

echo $response ;
	$url = "http://lifetimesms.com/balance-inquiry";

	$parameters = [
		"api_token" => "Your API Token",
		"api_secret" => "Your API Secret",
	];

	$ch = curl_init();
	$timeout  =  30;
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);
	curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
	$response = curl_exec($ch);
	curl_close($ch);

	echo $response ;
	$url = "http://lifetimesms.com/delivery-inquiry";

	$parameters = [
		"api_token" => "Your API Token",
		"api_secret" => "Your API Secret",
		"messageid" => "xxxxxxxxx,xxxxxxxxx",
	];

	$ch = curl_init();
	$timeout  =  30;
	curl_setopt($ch, CURLOPT_URL, $url);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);
	curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
	$response = curl_exec($ch);
	curl_close($ch);

	echo $response ;

Are you looking for custom integration ?

We are offering simple http API's that can be connected with any kind of app and programming language like php,dot net , java , vb.net , ruby etc Do you have any custom requirement? Are you facing issues / errors during integration , Then dont hesitate to contact us right now.

Contact Us

Our Clients

Zindgi PVT LTD Travel Port international Travel Egency Shell Oil Company ProQuest Medical Company Gets Pharma Hobotech Electronics Lipton Tea Dawat Hotel Allied School System xpress Post Al-shifa Hospital Disney Gujrawala Creative Cube Medical PANWORLD Medical Chanan school system Future Scientific Society SMT School and College BMS ISO certification in Karachi MDC Medical diagnostic center LAB Mattanys Restorent Comsats College NgTech Best Colsultantas NACSIT College Platinum.pk Online store of Hands bags Dar-Arqam-School PizzaOne Karachi Food GEHF Housing society of GEPCO IVYFABRICS Flah Trust First Aid Medical Complex Uniquechk shopping mall Al-muzamal JOBS MediaMount Polio Heath Worker Doctors Hospital Lahore Niazi Express Bus Service MGFA Builty Needles Online jewlery Store Hajisons Agricultural Firm Wormwhole Online software house Allied School Royal Group of Industry Milange Shopping Mall Moon Heath Care Center Savour Foods . Food in Karachi Mirchawala School college and accademy AS Projects DeliveryTen Food Delivery GonPacci Resturent A AM Power . Parts of Auto bikes Arain Cargo Trustline Travel Agency