diff options
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(); |