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
<message type="multi"> | |
<message type="/doc /pdf /tiff">000000-base64-000000</message> | |
<message type="/doc /pdf /tiff">000000-base64-000000</message> | |
</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="demo" password="demo"> | |
<push media="fax" | |
type="campaign" | |
name="ref-alphanum" | |
start_date="01/01/2015 15:00:00"> <!-- N'oubliez pas le chevron de fermeture ! --> | |
<message type="doc">000000-base64-000000</message> | |
<fax_config tries="2"> | |
<recipients> | |
<add target="+33 123456788" ref_target="uniq-id-for-report" /> | |
<add target="+33 123456789" /> |
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-fax.doc'; | |
$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="fax" type="on_demand" name="Test API Fax PHP"> | |
<message type="doc">'.$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="fax" type="on_demand" name="Test API Fax"> | |
<message type="doc"> | |
0M8R4KGxGuEAAAAA[...]AAAAAAAAAAAAAAAA | |
</message> | |
<recipients> | |
<add target="+33 170248254"/> | |
</recipients> | |
</push> | |
</request> |
NewerOlder