Skip to content

Instantly share code, notes, and snippets.

View expressmailing's full-sized avatar

Express-Mailing expressmailing

View GitHub Profile
@expressmailing
expressmailing / audio_push_response.xml
Created January 4, 2018 13:58
Retour du push audio
<request login="demo" password="demo">
<notifications media="voice"
seek="id-notification"
max="100" />
</request>
@expressmailing
expressmailing / api_voice_campaign_exemple_push.xml
Last active January 3, 2018 15:50
API campagne audio exemple push XML
<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>
@expressmailing
expressmailing / api_voice_unit_exemple_push.xml
Created January 3, 2018 15:12
API audio unitaire exemple push XML
<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>
@expressmailing
expressmailing / send_sms_unit_vb6.vb
Last active January 3, 2018 14:14
Exemple en VB 4/5/6 d'envoi de SMS unitaire
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>" & _
@expressmailing
expressmailing / send_sms_unit.vb
Created January 3, 2018 13:54
Exemple en VB d'envoi de SMS unitaire
Public Sub Main(ByVal Args() As String)
' Création du XML à poster
Dim xml As String = "<request login=""your-login"" password=""your-password"">" & _
"<push media=""sms"" type=""on_demand"" name=""Test API Sms VB.NET"">" & _
"<message type=""text"">Mon premier test sms</message>" & _
"<recipients>" & _
"<add target=""+33 600000000"" />" & _
"</recipients>" & _
"</push>" & _
"</request>"
@expressmailing
expressmailing / send_sms_unit.cs
Created January 2, 2018 16:03
Exemple en C# d'envoi de SMS unitaire
static void Main(string[] args)
{
// Création du XML à poster
var xml = @"<request login=""your-login"" password=""your-password"">
<push media=""sms"" type=""on_demand"" name=""Test API Sms C#"">
<message type=""text"">Mon premier test sms</message>
<recipients>
<add target=""+33 600000000""/>
</recipients>
</push>
@expressmailing
expressmailing / api_sms_unit_exemple_push.php
Last active January 2, 2018 15:39
API SMS unitaire exemple push PHP
<?php
// Création du XML à poster
$xml = '<request login="your-login" password="your-password">
<push media="sms" type="on_demand" name="Test API Sms PHP">
<message type="text">Mon premier test sms</message>
<recipients>
<add target="+33 600000000"/>
</recipients>
</push>
</request>';
@expressmailing
expressmailing / api_sms_unit_exemple_push.xml
Last active January 2, 2018 15:56
API SMS unitaire exemple push
<request login="your-login" password="your-password">
<push media="sms" type="on_demand" name="Test API Sms">
<message type="text">Mon premier test sms</message>
<recipients>
<add target="+33 600000000"/>
</recipients>
</push>
</request>
@expressmailing
expressmailing / add_sms_redlist.xml
Last active December 21, 2017 15:37
Structure de la commande
<personnal_redlist media="sms">
<add target="+33 600000001" comment="Le client a renvoyé STOP par SMS"/>
<remove target="+33 600000002"/>
</personnal_redlist>
@expressmailing
expressmailing / SMS_notification_request.xml
Created December 18, 2017 14:06
Récupération des notifications SMS
<request login="demo" password="demo">
<notifications media="sms"
seek="id-notification"
max="100" />
</request>