Devcode SMS Documentation

Welcome to the Devcode SMS documentation. This innovative API is designed to make it easy to send SMS messages directly from your web or mobile applications.

Table of Contents

1. Introduction

This API allows you to send SMS messages to your users. It is designed to be simple and quick to integrate.

What is the SMS API?
Our SMS API allows you to communicate quickly and efficiently with your users by sending them notifications, alerts, or marketing messages. With a simple and intuitive interface, you can easily integrate SMS sending into your existing systems, thereby improving customer engagement and service responsiveness.
Why use our API?
  • Ease of Integration: :With clear examples and detailed documentation, you can set up the API in no time.
  • Reliability: Our service is built on a robust infrastructure, ensuring fast and secure message delivery.
  • Flexibility: Whether you want to send a single message or massive campaigns, our API adapts to your needs.
  • Multichannel Support: Send SMS to local or international numbers, reaching your users wherever they are.
Who is this API for?
Our API is ideal for developers, businesses, and startups looking to enhance their communication with clients. Whether you’re a freelance developer or part of a technical team, our API provides the tools you need to optimize user engagement and communication.

2. Installation

To use our API, follow these steps:

  1. Create an account on the platform Create my account
  2. Go to the "Messages" section and subscribe to an SMS plan that suits your needs.
  3. Go to the "API Key" section and generate your API key.

3. Authentication

To access the API, you must authenticate with your API key. Add the key to your request parameters:

api_key: YOUR_API_KEY

4. Check your SMS balance

To check your SMS balance via the API, use the following URL:

POST https://devcodesms.com/developpeur/Solde_sms_dev

Exemple de requete

        $url = 'https://devcodesms.com/developpeur/Solde_sms_dev';

        $data = [
            "api_key" => "YOUR_API_KEY",
        ];

        $options = [
            'http' => [
                'header'  => "Content-Type: application/json\r\n",
                'method'  => 'POST',
                'content' => json_encode($data)
            ]
        ];

        $context = stream_context_create($options);
        $responseSms = file_get_contents($url, false, $context);
        $results[] = json_decode($responseSms, true) ?? [
            'status'          => 500,
            'code'            => "Erreur",
            'ressage'         => "Aucune réponse reçue"
        ];
        

5.Send an SMS

To send an SMS, use the following endpoint:

POST https://devcodesms.com/developpeur/Send_sms_dev

The body of the request must include:

{
        "api_key": "VOTRE_CLE_API",
        "sender": "IDENTIFIANT",
        "phone": "NUMERO_DESTINATAIRE",
        "message": "Votre message ici"
    }
PHP Example

    $data_to_send = [
        'api_key' => "VOTRE_CLE_API",
        'sender'  => "IDENTIFIANT",
        'phone'   => "+237659373726",
        'message' => "Votre message ici"
    ];

    $api_url = 'https://devcodesms.com/developpeur/Send_sms_dev';
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $api_url);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data_to_send));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $response = curl_exec($ch);
    if (curl_errno($ch)) {
        echo "Erreur : " . curl_error($ch); 
        curl_close($ch);
    } else {
        echo "Terminé";
    }
    

6. FAQ

Q: What is the SMS delivery time?

A: SMS messages are generally delivered within a few seconds.

Q: Can I send international SMS?

A: No, our SMS API does not support sending messages to multiple countries.

7. Effectuer des tests d'API

Vous pouvez effectuer des tests de nos API directement en utilisant notre outil en ligne, accessible via le lien ci-dessous.
Tester l’API en ligne

8. Support

Email: support@devcodesms.com
Address : Terminus derrière Marché B, Bafoussam
Phone 1 : (+237) 659 373 726
Phone 2 : +1 (613) 621-9632

Copyright © 2024 DevCode SMS. Tous droits réservés.
PowerBy DevCodeCamer.

ChatBot DevCode SMS