A quick and simple API to integrate !

Regardless of the language (PHP, ASP , C ++ , Java, Rubi , WINDEV , …)

Downloads

SMS API technical documentation

  • Version : 3.2
  • Last update : September 07, 2017

Examples

XML
JSON
PHP
HTML
JAVA
.NET
RUBY
BASH
XML
<?xml version="1.0" encoding="UTF-8"?>
<sms>
  <message>
  <text>Message via API</text>
    <pushtype>alert</pushtype>
    <delay>2014-06-15T15:00:00+00:00</delay>
    <senderid>SMSFactor</senderid>
  </message>
  <recipients>
    <gsm gsmsmsid="100">33601020304</gsm>
    <gsm gsmsmsid="101">33601020305</gsm>
  </recipients>
</sms>

Here is the XML format to send an SMS

JSON

Here is the JSON format to send an SMS

{
  "sms": {
    "message": {
      "text": "Message via API",
      "pushtype": "alert",
      "delay": "2014-06-15T15:00:00+00:00",
      "senderid": "SMSFactor"
    },
    "recipients": {
      "gsm": [
      {
        "gsmsmsid": "100",
        "value": "33601020304"
      },
      {
        "gsmsmsid": "101",
        "value": "33601020305"
      }
      ]
    }
  }
}
PHP

An example of use of our SMS API in PHP.

<?php
// https://secure.smsfactor.com/token.html;
$token = "";
$content = "Votre message";
$numbers = array('0601020304','0704030201');
$recipients = array();
foreach ($numbers as $n) {
  $recipients[] = array('value' => $n);
}

$postdata = array(
  'sms' => array(
   'message' => array(
    'text' => $content,
   ),
   'recipients' => array('gsm' => $recipients)
  )
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.smsfactor.com/send");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($postdata));
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Accept: application/json', 'Authorization: Bearer ' . $token));
$response = curl_exec($ch);
curl_close($ch);
HTML

An example of use of our SMS API in HTML/Javascript.

<?xml version="1.0" encoding="UTF-8"?>
<sms>
  <message>
  <text>Message via API</text>
    <pushtype>alert</pushtype>
    <delay>2014-06-15T15:00:00+00:00</delay>
    <sender>SMSFactor</sender>
  </message>
  <recipients>
    <gsm gsmsmsid="100">33601020304</gsm>
    <gsm gsmsmsid="101">33601020305</gsm>
  </recipients>
</sms>
JAVA

An example of use of our SMS API in JAVA.

<?xml version="1.0" encoding="UTF-8"?>
<sms>
  <message>
  <text>Message via API</text>
    <pushtype>alert</pushtype>
    <delay>2014-06-15T15:00:00+00:00</delay>
    <sender>SMSFactor</sender>
  </message>
  <recipients>
    <gsm gsmsmsid="100">33601020304</gsm>
    <gsm gsmsmsid="101">33601020305</gsm>
  </recipients>
</sms>
.NET

An example of use of our SMS API in .NET

<?xml version="1.0" encoding="UTF-8"?>
<sms>
  <message>
  <text>Message via API</text>
    <pushtype>alert</pushtype>
    <delay>2014-06-15T15:00:00+00:00</delay>
    <sender>SMSFactor</sender>
  </message>
  <recipients>
    <gsm gsmsmsid="100">33601020304</gsm>
    <gsm gsmsmsid="101">33601020305</gsm>
  </recipients>
</sms>
RUBY

An example of use of our SMS API in RUBY ( https://rubygems.org/gems/sms_factor )

<?xml version="1.0" encoding="UTF-8"?>
<sms>
  <message>
  <text>Message via API</text>
    <pushtype>alert</pushtype>
    <delay>2014-06-15T15:00:00+00:00</delay>
    <sender>SMSFactor</sender>
  </message>
  <recipients>
    <gsm gsmsmsid="100">33601020304</gsm>
    <gsm gsmsmsid="101">33601020305</gsm>
  </recipients>
</sms>
BASH

Configure variables with your account information corresponding to your message sending.

# curl allows to run the form with your username / password information

# | grep retrieves information if it is an existing one then the connection is successful

if curl -s -H ‘Content-Type: application/json’ -H ‘Accept: application/json’ -H “sfusername:${PSEUDO}” -H “sfpassword:${PASS}” -X POST -d “{“sms”:{“message”:{“text”:”${MESSAGE}”},”recipients”:{“gsm”:[{“value”:”${NUM}”}]}}}” ${URL} | grep ‘”sent”:1,’

then

echo “n${BOLD}${GREEN}SMS sent !${RESET}”

else

echo “n${BOLD}${RED} Sending failed because the information are wrong.${RESET}”

fi

Our SMS plugins !

plugin prestashop for integrate sms in the website e-commerce
With our sms prestashop plugin, you can integrate the SMS sendings into your ecommerce website in a few clicks!
Be done with stockout, manual relaunchings of basket… Make your customers relationship a real success!

We are offering you 250 test SMS.

Automate the sending of SMS to 400 applications thanks to the Zapier module
With the Zapier module, you can connect your sms sending to more than 400 applications!
Automate easily and quickly your sms sending in the tools of your choise to facilitate your daily life.

Be informed about the state of our systems in real time

All services available by API !

Delivery Status

You have access to operators’ delivery status. Quickly evaluate invalid destinations, received and not received messages.

Unsubscribe management

Offer a solution to unsubscribe to your customers. Unsubscribe management is automatic, the numbers are directly added to a blacklist.

Instant or delayed sending

With our API you can send messages instantaneously or program a subsequent date. Just set the date and time of the sending.

Sender customization

Give your clients the possibility to customize their SMS sender by putting their brand, their store or their company name , up to 11 alphanumeric characters

Lists Management

You can also manage the lists of contacts through our SMS API. Create or delete a list, add or delete a number.

SMS answers

Keep track of your SMS sendings. You can receive your SMS replies directly by API on the URL of your choice or directly in your inbox.

Contact us on +334.93.14.60.71

They use our SMS API

The software editor for veterinary has integrated our SMS API to allow customers to send text messages as reminders for vaccines or appointments. They use our SMS API.
VetoPartner, Veterinarian Software
The OSOFT company provides software for offices and medical facilities. Thus allowing to automate appointment confirmations by SMS.
OSOFT, Medical files software management
The company has integrated text messaging into its Infocob CRM and Fidécli’c software. Allowing its customers to send mailling and unit SMS.
Infocob Solutions, CRM & Software
The editor uses the API to confirm or cancel medical appointments via SMS. Patients may respond directly to the SMS to cancel or confirm.
PENARANDA, Radiological and Imagery Software

A predictable price whatever the chosen pack

Pack 1
1.000SMS
  • 65 € excl tax
  • 0.065 € excl tax / SMS
  • All inclusive
  • No expiration date
Pack 2
2.500SMS
  • 152.50 € excl tax
  • 0.061 € excl tax / SMS
  • All inclusive
  • No expiration date
Pack 4
10.000SMS
  • 550 € excl tax
  • 0.055 € excl tax / SMS
  • All inclusive
  • No expiration date
Pack 5
50.000SMS
  • 2450 € excl tax
  • 0.049 € excl tax / SMS
  • All inclusive
  • No expiration date

No to “Low cost”

At SMSFactor we don’t offer a “Low cost” service to send your SMS. We guarantee an optimal rate of delivery, and real monitoring of your campaigns.

Custom Volume

Small or large volumes, if you want a specific number of SMS don’t hesitate to contact one of our consultants to quickly get a personalized estimation cost on +339.83.66.87.45

Integration

We can help you integrate our SMS API in your application or website. A dedicated counselor is available to assist you.

Monthly billing

To ease your life, SMSFactor proposes you the “tailored” bill according to your monthly consumption. This is payable by check, bank transfer or direct debit.

Sign up for free and test - 10 free SMS

Address: 126 Léon Bérenger avenue, 06700, St Laurent du Var
Phone: +334 93 14 60 71

How to send sms from Gmail or any other mailbox?

Companies very often need to inform in real time, quickly and effectively. Bosses often need to communicate to some people precise ad urgent information. That why, many companies have chosen the rapidity and simplicity by sending sms by email to