Skip to content

Commit 815b8e2

Browse files
author
Josh Pettett
committed
added example for using content_url param
1 parent a29e215 commit 815b8e2

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

CHANGELOG

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
=== 2.0.0-beta 2017-11-08
1+
=== 2.0.1 2018-01-12
2+
3+
* added example for using content_url param
4+
5+
=== 2.0.0 2017-12-04
26

37
* rewrite for v2 of Phaxio API; uses more resource-oriented object structure
48

@@ -13,4 +17,4 @@
1317
=== 1.0.1 2014-09-08
1418

1519
* faxFile operation is now supported via the download() function
16-
* fix for #2
20+
* fix for #2

examples/sendContentUrls.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
require_once('phaxio_config.php');
4+
require_once('autoload.php');
5+
6+
$params = array(
7+
'to' => $toNumber,
8+
'content_url' => array(
9+
'https://www.phaxio.com',
10+
'https://www.example.com'
11+
)
12+
);
13+
14+
$phaxio = new Phaxio($apiKeys[$apiMode], $apiSecrets[$apiMode], $apiHost);
15+
16+
$result = $phaxio->sendFax($params);
17+
var_dump($result);
18+

0 commit comments

Comments
 (0)