API HTTPS REST, protocole SMPP et WhatsApp Business API. Documentation complète, exemples de code, support développeurs 24/7.
HTTPS REST API, SMPP protocol and WhatsApp Business API. Complete documentation, code examples, 24/7 developer support.
Envoi simple d'un SMS à un ou plusieurs destinataires.
Simple SMS sending to one or multiple recipients.
| Paramètre | Description | Requis | ||
|---|---|---|---|---|
login | Votre identifiant | Your username | Oui | |
password | Votre mot de passe | Your password | Oui | |
sender | Nom d'expéditeur (max 11 car.) | Sender name (max 11 chars) | Oui | |
tel | Numéro(s) destinataire(s) | Recipient number(s) | Oui | |
msg | Contenu du SMS (UTF-8) | SMS content (UTF-8) | Oui | |
type | flash / normal | Non |
API REST v1 moderne avec authentification Bearer token.
Modern REST v1 API with Bearer token authentication.
// Envoi SMS via API HTTPS GET $url = "https://sms.etech-keys.com/ss/envoyer.php"; $params = [ 'login' => 'VOTRE_LOGIN', 'password' => 'VOTRE_MOT_DE_PASSE', 'sender' => 'MON_SENDER', 'tel' => '237673767207', 'msg' => 'Bonjour depuis ETECH KEYS!', ]; $response = file_get_contents( $url . '?' . http_build_query($params) ); echo $response;
Envoi d'un message WhatsApp texte ou template.
Send a WhatsApp text or template message.
Consulter le solde WhatsApp disponible.
Check available WhatsApp balance.
Récupérer les messages reçus (inbox).
Retrieve received messages (inbox).
// Envoi template WhatsApp $ch = curl_init(); curl_setopt_array($ch, [ CURLOPT_URL => 'https://v1.api.etech-keys.com/api/v1/whatsapp/send', CURLOPT_POST => true, CURLOPT_HTTPHEADER => [ 'Authorization: Bearer ' . $token, 'Content-Type: application/json', ], CURLOPT_POSTFIELDS => json_encode([ 'to' => '237673767207', 'type' => 'template', 'template' => [ 'name' => 'mon_template', 'language' => 'fr', 'components' => [[ 'type' => 'body', 'parameters' => [[ 'type' => 'text', 'text' => 'Jean Dupont', ]], ]], ], ]), CURLOPT_RETURNTRANSFER => true, ]); $result = curl_exec($ch);
Connexion directe au réseau via protocole SMPP v3.4. Idéal pour les volumes importants (>10 000 SMS/min).
Direct network connection via SMPP v3.4 protocol. Ideal for high volumes (>10,000 SMS/min).
Hôte : sms.etech-keys.com · Port : 2775 (TLS: 2776)
Host: sms.etech-keys.com · Port: 2775 (TLS: 2776)
SMPP v3.4 · Modes : Transmitter, Receiver, TransceiverModes: Transmitter, Receiver, Transceiver
Jusqu'à 500 SMS/s selon l'abonnement
Up to 500 SMS/s depending on subscription
Connexion TLS disponible · Authentification par login/password
TLS connection available · Login/password authentication
# Paramètres de connexion SMPP host = sms.etech-keys.com port = 2775 port_tls = 2776 version = 3.4 system_id = VOTRE_LOGIN password = VOTRE_MOT_DE_PASSE system_type= SMPP mode = transceiver # Encodage data_coding= 0 (GSM7) data_coding= 8 (UCS2/Unicode) # Keepalive enquire_link= 30s
Recevez un callback HTTP sur votre URL dès qu'un SMS est livré ou échoue. Paramètres : tel, etat, id, date.
Receive an HTTP callback on your URL when an SMS is delivered or fails. Parameters: tel, status, id, date.
Réception de messages entrants, statuts de livraison, mises à jour templates. Vérification HMAC-SHA256.
Receive inbound messages, delivery statuses, template updates. HMAC-SHA256 verification.
Recevez les réponses SMS de vos clients sur votre numéro court ou longcode via callback HTTP.
Receive SMS replies from your clients on your short number or longcode via HTTP callback.
// callback.php — Réception DLR SMS $tel = $_GET['tel'] ?? ''; $etat = $_GET['etat'] ?? ''; // 1=livré, 2=échoué $id = $_GET['id'] ?? ''; if ($etat === '1') { // SMS livré log_delivery($id, $tel, 'delivered'); } elseif ($etat === '2') { // SMS échoué log_delivery($id, $tel, 'failed'); } http_response_code(200); echo 'OK';
Créez votre compte et obtenez vos credentials en quelques minutes.
Create your account and get your credentials in minutes.