summaryrefslogtreecommitdiffstats
path: root/examples/bootstrap.php
diff options
context:
space:
mode:
authorAvi Goldman <avrahamymgoldman@gmail.com>2016-06-22 11:45:16 -0400
committerAvi Goldman <avrahamymgoldman@gmail.com>2016-06-22 11:45:16 -0400
commitce821d64191a9b0b101cb9d93e4107691d952c3d (patch)
tree9bd7ac9de2f94bae20bf47ce2aecaecd4ac8fbb0 /examples/bootstrap.php
parentd7f6b4b22e569ed0da339a9228f4202304fe7a05 (diff)
downloadphp-sparkpost-ce821d64191a9b0b101cb9d93e4107691d952c3d.zip
php-sparkpost-ce821d64191a9b0b101cb9d93e4107691d952c3d.tar.gz
php-sparkpost-ce821d64191a9b0b101cb9d93e4107691d952c3d.tar.bz2
parsed example-options.json and pull in autoload.php
Diffstat (limited to 'examples/bootstrap.php')
-rw-r--r--examples/bootstrap.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/bootstrap.php b/examples/bootstrap.php
index 688d53e..2085888 100644
--- a/examples/bootstrap.php
+++ b/examples/bootstrap.php
@@ -1,3 +1,7 @@
<?php
require_once dirname(__FILE__).'/../vendor/autoload.php';
+
+//pull in API key config
+$optionsFile = file_get_contents(dirname(__FILE__).'/example-options.json');
+$options = json_decode($optionsFile, true);