Aucun résultat

SMS transactionnels – méthodes de requête

Exemples de requêtes pour l'endpoint simple/transactional dans chacune des méthodes prises en charge. Pour la signification des paramètres, consultez la spécification ; pour du code prêt à l'emploi dans différents langages, consultez les exemples.

Avertissement

Il est strictement interdit d'utiliser les SMS transactionnels à des fins promotionnelles ou marketing. Ils doivent servir uniquement à des fins de notification — sous forme de notification SMS.

Méthode GET

Exemple de requête complète :

https://portal.bulkgate.com/api/1.0/simple/transactional ?application_id=451 &application_token=NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj &number=420777777777 &text=test_sms &unicode=yes &sender_id=gText &sender_id_value=BulkGate &country=cz

Exemple de requête avec ajout de l'indicatif du pays :

https://portal.bulkgate.com/api/1.0/simple/transactional ?application_id=451 &application_token=NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj &number=777777777 &text=test_sms &country=cz

Méthode POST - application/x-www-form-urlencoded

Exemple de requête complète :

POST /api/1.0/simple/transactional HTTP/1.1 Host: portal.bulkgate.com Content-Type: application/x-www-form-urlencoded application_id=451&application_token=NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj&number=420777777777&text=test_sms&unicode=yes&sender_id=gText&sender_id_value=BulkGate&country=cz

Exemple de requête avec ajout de l'indicatif du pays :

POST /api/1.0/simple/transactional HTTP/1.1 Host: portal.bulkgate.com Content-Type: application/x-www-form-urlencoded application_id=451&application_token=NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj&number=777777777&text=test_sms&country=cz

Méthode POST - application/json

Exemple de requête complète :

POST /api/1.0/simple/transactional HTTP/1.1 Host: portal.bulkgate.com Content-Type: application/json { "application_id": 451, "application_token": "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj", "number": "777777777", "text": "test_sms", "unicode": true, "sender_id": "gText", "sender_id_value": "BulkGate", "country": "cz" }

Exemple de requête avec ajout de l'indicatif du pays :

POST /api/1.0/simple/transactional HTTP/1.1 Host: portal.bulkgate.com Content-Type: application/json { "application_id": 451, "application_token": "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj", "number": "777777777", "text": "test_sms", "country": "cz" }
Cette page vous a-t-elle été utile ?