This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub Form_Load() | |
' Création du XML à poster | |
Dim xml As String | |
xml = "<request login=""your-login"" password=""your-password"">" & _ | |
"<push media=""sms"" type=""on_demand"" name=""Test API Sms VB6"">" & _ | |
"<message type=""text"">Mon premier test sms</message>" & _ | |
"<recipients>" & _ | |
"<add target=""+33 600000000"" />" & _ | |
"</recipients>" & _ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<request login="demo" password="demo"> | |
<push media="voice" | |
type="on_demand" | |
name="Annonce audio au décrochage"> | |
<message type="wav">000000-base64-000000</message> | |
<voice_config sender_id="0102030405"> | |
<recipients> | |
<add target="+33 123456788" ref_target="uniq-id-for-report" /> | |
</recipients> | |
</push> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<request login="demo" password="demo"> | |
<push media="voice / messaging" | |
type="campaign / on_demand" | |
name="ref-alphanum" | |
start_date="01/01/2018 15:00:00"><!--n'oubliez pas le chevron de fermeture !)--> | |
<message type="wav">000000-wav-base64-000000</message> | |
<recipients> | |
<add target="+33 100000000" ref_target="uniq-id-for-report"/> | |
</recipients> | |
</push> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<request login="demo" password="demo"> | |
<notifications media="voice" | |
seek="id-notification" | |
max="100" /> | |
</request> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<personnal_redlist media="voice /messaging"> | |
<add target="+33 123456790" comment="Le client s'est plaint par téléphone"/> | |
<remove target="+33 600111222"/> | |
</personnal_redlist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<request login="your-login" password="your-password"> | |
<push media="voice" type="on_demand" name="Appel téléphonique en PHP"> | |
<message type="wav"> | |
UklGRpw5AQBXQVZFZm10I[...]gH+A | |
</message> | |
<recipients> | |
<add target="+33 100000000" /> | |
</recipients> | |
</push> | |
</request> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Récupération du document en base64 | |
$filename = 'test-audio.wav'; | |
$binary = fread(fopen($filename, 'r'), filesize($filename)); | |
$binary = base64_encode($binary); | |
// Création du XML à poster | |
$xml = '<request login="your-login" password="your-password"> | |
<push media="voice" type="on_demand" name="Test API Audio PHP"> | |
<message type="wav">'.$binary.'</message> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<request login="your-login" password="your-password"> | |
<push media="voice" type="on_demand" name="Envoi audio fixe ou mobile"> | |
<message type="wav"> | |
UklGRpw5AQBXQVZFZm10IBAAAAABAAEAQB8AAEAfAAABA[...]gIB/gIB/gH+A | |
</message> | |
<voice_config sender_id="0199999999" /> | |
<recipients> | |
<add target="+33 100000000" /> | |
</recipients> | |
</push> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
// Récupération du document en base64 | |
string filename = "test-audio.wav"; | |
byte[] file = System.IO.File.ReadAllBytes(filename); | |
string binary = System.Convert.ToBase64String(file, 0, file.Length); | |
// Création du XML à poster | |
var xml = @"<request login=""your-login"" password=""your-password""> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSON BODY : | |
{ | |
"message": "Hello world !", | |
"defaults": { | |
"countryCode": "FR" | |
}, | |
"recipients": [ | |
{ "target": "06xxxxxxx1" }, | |
{ "target": "06xxxxxxx2" }, | |
{ "target": "06xxxxxxx3" }, |