Browse code

Created repository.

DoubleBastionAdmin authored on 01/03/2022 23:31:10
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,11 @@
1
+<?php
2
+
3
+require_once('phaxio_config.php');
4
+require_once('autoload.php');
5
+
6
+$faxId = 1234;
7
+$outfile = "/tmp/out.pdf";
8
+
9
+$phaxio = new Phaxio($apiKeys[$apiMode], $apiSecrets[$apiMode], $apiHost);
10
+
11
+file_put_contents($outfile, $phaxio->retriveFaxFile($faxId)->body);