Livrabilité et Rapidité Optimales

Simplifiez vos campagnes ,
SMS & WhatsApp Avec Obulky

Obulky vous permet d'envoyer facilement des SMS et messages WhatsApp, gérer vos campagnes et alertes en quelques clics.

  • Envoi en masse SMS & WhatsApp
  • Campagnes automatisées
  • Notifications et alertes
  • Suivi et reporting
Développeurs

Intégrez facilement
notre API REST.

Intégrez nos solutions SMS à votre application, site Web ou CRM en toute simplicité. Accédez à la documentation pour développeurs et connectez-vous aux trois opérateurs.

				
					curl -X POST https://app.obulky.com/api/http/sms/send \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"api_token":"3|Rg7vk3eLVQJYS3dE4Hioqmxd4jANpHOhelGQBkyy6a144e6c",
"recipient":"212612345678",
"sender_id":"YourName",
"type":"plain",
"message":"This is a test message"
}'
				
			
Développeurs

Envoi de SMS Pour les dev.

Simplifiez l’intégration de notre API SMS avec votre système, quelle que soit votre technologie. Accédez à notre documentation et connectez-vous aux opérateurs en toute simplicité.

PHP

				
					// Initialize cURL session
$ch = curl_init();

// API endpoint URL
$url = 'https://app.obulky.com/api/http/sms/send';

// Request data
$data = array(
    'api_token' => '3|Rg7vk3eLVQJYS3dE4Hioqmxd4jANpHOhelGQBkyy6a144e6c',
    'recipient' => '212612345678',
    'sender_id' => 'YourName',
    'type' => 'plain',
    'message' => 'This is a test message'
);

// Convert data to JSON
$data_json = json_encode($data);

// Set cURL options
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_json);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Content-Type: application/json',
    'Accept: application/json',
));

// Execute cURL request and capture the response
$response = curl_exec($ch);

// Check for errors
if ($response === false) {
    echo 'cURL Error: ' . curl_error($ch);
} else {
    echo 'Response: ' . $response;
}

// Close cURL session
curl_close($ch);
				
			

JAVA

				
					package com.example.demo;

import org.springframework.http.*;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
public class SmsService {

    private static final String SMS_API_URL = "https://app.obulky.com/api/http/sms/send";

    public String sendSms() {
        try {
            // Prepare the JSON body
            String jsonBody = "{\n" +
                    "\"api_token\": \"3|Rg7vk3eLVQJYS3dE4Hioqmxd4jANpHOhelGQBkyy6a144e6c\",\n" +
                    "\"recipient\": \"212612345678\",\n" +
                    "\"sender_id\": \"YourName\",\n" +
                    "\"type\": \"plain\",\n" +
                    "\"message\": \"This is a test message\"\n" +
                    "}";

            // Create the headers
            HttpHeaders headers = new HttpHeaders();
            headers.setContentType(MediaType.APPLICATION_JSON);
            headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));

            // Create the HttpEntity with the body and headers
            HttpEntity<String> entity = new HttpEntity<>(jsonBody, headers);

            // Send the POST request
            RestTemplate restTemplate = new RestTemplate();
            ResponseEntity<String> response = restTemplate.exchange(SMS_API_URL, HttpMethod.POST, entity, String.class);

            // Return the response
            return response.getBody();

        } catch (Exception e) {
            e.printStackTrace();
            return "Error during API call";
        }
    }
}
				
			

PYTHON

				
					import requests
import json

def send_sms():
    url = "https://app.obulky.com/api/http/sms/send"

    # JSON payload
    payload = {
        "api_token": "3|Rg7vk3eLVQJYS3dE4Hioqmxd4jANpHOhelGQBkyy6a144e6c",
        "recipient": "212612345678",
        "sender_id": "YourName",
        "type": "plain",
        "message": "This is a test message"
    }

    # Headers for the request
    headers = {
        "Content-Type": "application/json",
        "Accept": "application/json"
    }

    # Send the POST request
    response = requests.post(url, data=json.dumps(payload), headers=headers)

    # Check the response status
    if response.status_code == 200:
        print("Response:", response.json())
    else:
        print(f"Error: {response.status_code}, {response.text}")

# Call the function to send SMS
send_sms()
				
			

C SHARP

				
					using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;

class SmsService
{
    private static readonly string ApiUrl = "https://app.obulky.com/api/http/sms/send";
    private static readonly string ApiToken = "3|Rg7vk3eLVQJYS3dE4Hioqmxd4jANpHOhelGQBkyy6a144e6c";
    private static readonly string Recipient = "212612345678";
    private static readonly string SenderId = "YourName";
    private static readonly string Message = "This is a test message";

    public static async Task SendSmsAsync()
    {
        using (var client = new HttpClient())
        {
            // Prepare JSON payload
            var jsonPayload = $"{{\"api_token\":\"{ApiToken}\",\"recipient\":\"{Recipient}\",\"sender_id\":\"{SenderId}\",\"type\":\"plain\",\"message\":\"{Message}\"}}";

            // Create the request content
            var content = new StringContent(jsonPayload, Encoding.UTF8, "application/json");

            try
            {
                // Send the POST request
                var response = await client.PostAsync(ApiUrl, content);

                if (response.IsSuccessStatusCode)
                {
                    // Read the response body
                    var responseBody = await response.Content.ReadAsStringAsync();
                    Console.WriteLine("Response: " + responseBody);
                }
                else
                {
                    Console.WriteLine($"Error: {response.StatusCode}, {await response.Content.ReadAsStringAsync()}");
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine($"Exception: {ex.Message}");
            }
        }
    }

    static async Task Main(string[] args)
    {
        await SendSmsAsync();
    }
}
				
			
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.