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() | |
' Récupération du document en base64 | |
' --------------------------------------- | |
Dim filename As String, file() As Byte, filnum As Integer, binary As String | |
filename = "test-fax.doc" | |
filnum = FreeFile() | |
Open filename For Binary As filnum | |
file = InputB(LOF(filnum), #filnum) | |
Close filenum |
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="sms" | |
type="on_demand" | |
name="ref-alphanum" | |
start_date="01/01/2015 15:00:00"><!--(n'oubliez pas le chevron de fermeture !)--> | |
<message type="text">Ceci est mon premier test sms</message> | |
<sms_config validity="7" /> | |
<recipients> | |
<add target="+33 600000000" ref_target="uniq-id-for-report" /> |
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="sms" | |
type="campaign" | |
name="ref-alphanum" | |
start_date="01/01/2017 15:00:00"><!--n'oubliez pas le chevron de fermeture !)--> | |
<message type="text">Corps de mon SMS</message> | |
<sms_config validity="7" sender_id="XPMAILING" /> | |
<recipients> | |
<add target="+33 600000000" ref_target="uniq-id-for-report"/> | |
</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
<?xml version="1.0" encoding="utf-8"?> | |
<response> | |
<push status="ok" status-detail="on_demand sms created" pages="2" /> | |
</response> |
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="sms" | |
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="sms"> | |
<add target="+33 600000001" comment="Le client a renvoyé STOP par SMS"/> | |
<remove target="+33 600000002"/> | |
</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="sms" type="on_demand" name="Test API Sms"> | |
<message type="text">Mon premier test sms</message> | |
<recipients> | |
<add target="+33 600000000"/> | |
</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 | |
// 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>'; |
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) | |
{ | |
// 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> |
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
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>" |