Optimal Deliverability and Speed

Simplify your campaigns,
SMS & WhatsApp with Obulky.

Obulky allows you to easily send SMS and WhatsApp messages, manage your campaigns and alerts with just a few clicks.

  • Mass SMS & WhatsApp Sending
  • Automated Campaigns
  • Notifications and Alerts
  • Tracking and Reporting
Developers

Integrate easily
our REST API.

Integrate our SMS solutions into your application, website, or CRM with ease. Access the developer documentation and connect to all three operators.

				
					$url='https://bulksms.ma/developer/sms/send';
$ch=curl_init();
$fields_string = 'token=test_gshuPaZoeEG6ovbc8M79w0Qy&tel=0600000000&message='.urlencode('Ceci est un message de test');
curl_setopt ( $ch,CURLOPT_URL, $url);
curl_setopt ( $ch,CURLOPT_RETURNTRANSFER, true);
curl_setopt ($ch,CURLOPT_POSTFIELDS,$fields_string);
$output=curl_exec($ch);
curl_close($ch);
				
			
Developers

Sending SMS for dev.

Simplify the integration of our SMS API with your system, regardless of your technology. Access our documentation and connect to the operators with ease.

PHP

				
					$url='https://bulksms.ma/developer/sms/send';
$ch=curl_init();
$fields_string = 'token=test_gshuPaZoeEG6ovbc8M79w0Qy&tel=0600000000&message='.urlencode('Ceci est un message de test');
curl_setopt ( $ch,CURLOPT_URL, $url);
curl_setopt ( $ch,CURLOPT_RETURNTRANSFER, true);
curl_setopt ($ch,CURLOPT_POSTFIELDS,$fields_string);
$output=curl_exec($ch);
curl_close($ch);
				
			

JAVA

				
					package ma.bulksms.example.temp;
import java.io.IOException;
 
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.HttpMethod;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.httpclient.NameValuePair;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.methods.PostMethod;
import org.apache.commons.httpclient.util.EncodingUtil;
 
public class ExempleClientHttpAPI {
 
    private static String BASE_URL = "https://bulksms.ma";
 
    public static void main(String[] args) {
        String message = "Mon Message";
        String destinataires = "06XXXXXXXXX,07YYYYYYYY"; //Receivers separated by a comma
        String emetteur = "MySenderID"; //Optional parameter, allows to deal with the sms sender
 
        sendSMS(message, destinataires, emetteur);
    }
 
    public static void sendSMS(String message, String destinataires, String emetteur) {
        try {
            String getURL = BASE_URL + "/developer/sms/send";
            GetMethod httpMethod = new GetMethod(getURL);
            httpMethod.addRequestHeader("Content-Type", "plain/text; charset=ISO-8859-15");
 
            NameValuePair params[] = {new NameValuePair("token", "test_gshuPaZoeEG6ovbc8M79w0Qy"), //
                new NameValuePair("message", message), //
                new NameValuePair("tel", destinataires), //Receivers separated by a comma
                new NameValuePair("shortcode", emetteur), //Optional parameter, allows to deal with the sms sender
        };
            httpMethod.setQueryString(EncodingUtil.formUrlEncode(params));
 
            System.out.println(httpMethod.getURI() + "" + httpMethod.getQueryString());
 
            executeMethod(httpMethod);
        } catch (Exception e) {
            manageError(e);
        }
    }
 
    private static void executeMethod(HttpMethod httpMethod) throws IOException, HttpException {
        HttpClient httpClient = new HttpClient();
 
        System.out.println(httpMethod);
        int codeReponse = httpClient.executeMethod(httpMethod);
        verifyReponse(httpMethod, codeReponse);
    }
 
    private static void verifyReponse(HttpMethod httpMethod, int codeReponse) throws IOException {
        if (codeReponse == HttpStatus.SC_OK || codeReponse == HttpStatus.SC_ACCEPTED) {
            String result = new String(httpMethod.getResponseBody());
            System.out.println(result);
        }
    }
 
    private static void manageError(Exception e) {
        e.printStackTrace();
        System.err.println("Error during API call");
    }
 
}
				
			

PYTHON

				
					import requests
r = requests.get('https://bulksms.ma/developer/sms/send?token=test_gshuPaZoeEG6ovbc8M79w0Qy&message=test&tel=06XXXXXXXX')
print r.text
				
			

C SHARP

				
					using System;
using System.Web;
using System.Net;
using System.IO;
 
namespace BulksmsTest
{
    public class SendSMSExemple
    {
        public static void Main(string[] args)
        {
            new SendSMSExemple().sendSMS();
        }
 
        public void sendSMS()
        {
 
            Console.WriteLine("/////////////// Beginning Send SMS HTTP ");
 
            string token = "test_gshuPaZoeEG6ovbc8M79w0Qy";
            string numero = "06XXXXXXXXX";
            string message = "Mon message";
            string url = "https://bulksms.ma/developer/sms/send?token=" + token + "&tel=" + numero;
 
            string urlEncodedMessage = HttpUtility.UrlEncode(message);
            url = url + "&message=" + urlEncodedMessage;
 
            string result = Get(url);
 
            Console.WriteLine("/////////////// End Send SMS HTTP with " + result);
 
        }
        public string Get(string uri)
        {
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);
            request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
 
            using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
            using (Stream stream = response.GetResponseStream())
            using (StreamReader reader = new StreamReader(stream))
            {
                return reader.ReadToEnd();
            }
        }
    }
}
				
			
Commencez l'aventure

Prêt à booster votre business?

Augmentez vos ventes et prenez de l'avance dans un marché compétitif en étant parmi les premiers à en bénéficier.