Published: Jan 07, 2020
Last update: Jun 20, 2022
API SMS SMS how to

LabsMobile’s SMS API: an effective means of communication

LabsMobiles SMS API
LabsMobile’s SMS API: an effective means of communication
5 (100%) 6 votes

How do you integrate an SMS service within a CRM or management system? En this post, we are going to explain what is an SMS API platform and how to do the migration. 

What’s an SMS API? 

It’s a system that allows you to send notifications to clients via a complete and practical interface. Thanks to the SMS APIs we can send messages in a fast and safe way.

What are the advantages of an API SMS?

– It offers an efficient communication channel

To send customized text messages in mass.

– It is safe and versatile

It allows for the verification of OTP (One time password) and processes of authentification through phone numbers.

LabsMobile’s SMS APi is the best system for sending SMS

  1. Compatible

It works with any type of support GET, POST, WebService, Mail, OneAPI, REST and SMPP.

  1. Global

Quality routes with guaranteed delivery in more than 200 countries. 

  1. Safe

HTTPS connections, API tokens, and IP filters.

  1. Versatile
  • Schedule delivery for concrete days and times, personalizable senders in each delivery and confirmation via API.
  • Simulation mode to try delivery.
  • Uncomparable processing, thousands of requests per second.
  • Constant technical support. 
  • 100 % compatible SMS API

How do you integrate the SMS API?

In the webpage you can download manuals with details for each service:

 

– JSON

– GET (Http/GET)

– POST (Http/POST XML)

– WSDL (Webservice)

– SMTP (MailSMS)

There are also some connections available like OneAPI, SMPP, GSMA, 2FA, OTP and administrative functions like subaccounts.

Some examples of code

Here are some examples of code you can insert in different languages:

– PHP

<?php 

$url = “https://api.labsmobile.com/get/send.php?username=acct01@demo.com&password=acct01pwd&msisdn=34672534218&Hi+this+is+your+first+message”;

$ch = curl_init($url);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

curl_setopt($ch, CURLOPT_HEADER, true);

$result = curl_exec($ch);

$message = htmlentities(‘Message has been sent.<br />Details:’ . “<br />” . $result);

 

– JAVA

HttpURLConnectionExample http = new HttpURLConnectionExample();

URL obj = new URL(“https://api.labsmobile.com/get/send.php?username=[X]&password=[X]&msisdn=34609036253&sender=SENDER&message=This+is+the+message”);

HttpURLConnection con = (HttpURLConnection) obj.openConnection();

con.setRequestMethod(“GET”);

con.setRequestProperty(“User-Agent”, “Mozilla/5.0”);

int responseCode = con.getResponseCode();

 

– VB.net

HttpURLConnectionExample http = new HttpURLConnectionExample();

URL obj = new URL(“https://api.labsmobile.com/get/send.php?username=[X]&password=[X]&msisdn=34609036253&sender=SENDER&message=This+is+the+message”);

HttpURLConnection con = (HttpURLConnection) obj.openConnection();

con.setRequestMethod(“GET”);

con.setRequestProperty(“User-Agent”, “Mozilla/5.0”);

int responseCode = con.getResponseCode();

 

– Ruby

require ‘net/http’

url = URI.parse(‘https://api.labsmobile.com/get/send.php?username=[X]&password=[X]&msisdn=34609036253&sender=SENDER&message=This+is+the+message’)

req = Net::HTTP::Get.new(url.to_s)

res = Net::HTTP.start(url.host, url.port) { http.request(req) }

puts res.body

 

– C#

WebClient client = new WebClient();

client.QueryString.Add(“username”, “xx@xx.xx”);

client.QueryString.Add(“password”, “xxxxxxxx”);

client.QueryString.Add(“msisdn”, “xxxx”);

client.QueryString.Add(“message”, “This is an example message”);

string baseurl =”https://api.labsmobile.com/get/send.php”;

Stream data = client.OpenRead(baseurl);

 

Try LabsMobile for free

The best thing about LabsMobile’s SMS API is that you can try it completely for free. 

This is the perfect way to integrate it with SMS and to see for yourself the advantages of massively sending text messages. It’s an efficient, versatile and safe way of communication with a lot of potential for the future.