diff options
author | beardyman <nornholdj@gmail.com> | 2015-09-17 23:20:26 -0400 |
---|---|---|
committer | beardyman <nornholdj@gmail.com> | 2015-09-17 23:20:26 -0400 |
commit | efe48cc85e619768f69cd1d4843505bf9d146745 (patch) | |
tree | 9d0f5c7bae4a4d75745d30d969798a9c121155fd /examples/transmission/get_all_transmissions.php | |
parent | b51ce2d0a8fad2577c164e1ab1c8382b1ae23fae (diff) | |
download | php-sparkpost-efe48cc85e619768f69cd1d4843505bf9d146745.zip php-sparkpost-efe48cc85e619768f69cd1d4843505bf9d146745.tar.gz php-sparkpost-efe48cc85e619768f69cd1d4843505bf9d146745.tar.bz2 |
Removed most static methods and adopted an instance based implementation. Updated all examples and compatibility later to reflect these changes.
Diffstat (limited to 'examples/transmission/get_all_transmissions.php')
-rw-r--r-- | examples/transmission/get_all_transmissions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/transmission/get_all_transmissions.php b/examples/transmission/get_all_transmissions.php index 1e1882b..669c3e7 100644 --- a/examples/transmission/get_all_transmissions.php +++ b/examples/transmission/get_all_transmissions.php @@ -9,10 +9,10 @@ use Ivory\HttpAdapter\Guzzle6HttpAdapter; $key = 'YOUR API KEY'; $httpAdapter = new Guzzle6HttpAdapter(new Client()); -SparkPost::configure($httpAdapter, ['key'=>$key]); +$sparky = new SparkPost($httpAdapter, ['key'=>$key]); try { - $results = Transmission::all(); + $results = $sparky->transmission->all(); echo 'Congrats you can use your SDK!'; } catch (\Exception $exception) { echo $exception->getMessage(); |