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,18 @@
1
+<?php
2
+
3
+require_once('phaxio_config.php');
4
+require_once('autoload.php');
5
+
6
+$phaxio = new Phaxio($apiKeys[$apiMode], $apiSecrets[$apiMode], $apiHost);
7
+
8
+$params = array(
9
+    'to' => $toNumber,
10
+    'file' => array(
11
+        $phaxio->stringUpload('Page 1'),
12
+        $phaxio->stringUpload('<b>Page 2<b>', 'html')
13
+    )
14
+);
15
+
16
+$result = $phaxio->sendFax($params);
17
+var_dump($result);
18
+