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"> | |
<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
<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
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
Public Sub Main(ByVal Args() As String) | |
' Récupération du document en base64 | |
' --------------------------------------- | |
Dim filename As String = "test-fax.doc" | |
Dim file() As Byte = System.IO.File.ReadAllBytes(filename) | |
Dim binary As String = System.Convert.ToBase64String(file, 0, file.Length) | |
' Création du XML à poster | |
' -------------------------- |
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-fax.doc"; | |
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
<personnal_redlist media="fax"> | |
<add target="+33 123456789" comment="Le client a renvoyé un fax raturé"/> | |
<remove target="+33 300000001"/> | |
</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
<?xml version="1.0" encoding="utf-8"?> | |
<response> | |
<notifications status="ok" position="17694933"> | |
<notification id-notifcation="17694930"> | |
<status>PROGRESS</status> | |
<date>02/03/2017 09:19:27</date> | |
<state-desc>RAS</state-desc> | |
<sms-state>0</sms-state> | |
<ref_target>uniq-sms-id-12</ref_target> | |
<ref_group>Campagne SMS Test</ref_group> |
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="fax" | |
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
<?xml version="1.0" encoding="utf-8"?> | |
<response> | |
<push status="ok" status-detail="on_demand fax created" pages="2" /> | |
</response> |