1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,12 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+require_once('phaxio_config.php'); |
|
4 |
+require_once('autoload.php'); |
|
5 |
+ |
|
6 |
+$faxId = 1234; |
|
7 |
+$outfile = "/tmp/out.jpg"; |
|
8 |
+$params = array('thumbnail' => 'l'); |
|
9 |
+ |
|
10 |
+$phaxio = new Phaxio($apiKeys[$apiMode], $apiSecrets[$apiMode], $apiHost); |
|
11 |
+ |
|
12 |
+file_put_contents($outfile, $phaxio->retriveFaxFile($faxId, $params)->body); |