summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornornholdj <nornholdj@gmail.com>2014-11-13 14:30:15 -0500
committernornholdj <nornholdj@gmail.com>2014-11-13 14:30:15 -0500
commitda6b12d6650868ea48afcb5a960ab6214ed6004f (patch)
treea92e81a23f4b8a55512416423bb5d5fb79c715d0
parentaeb73442306e915e54d1f53d6fae68c060c57d73 (diff)
downloadphp-sparkpost-da6b12d6650868ea48afcb5a960ab6214ed6004f.zip
php-sparkpost-da6b12d6650868ea48afcb5a960ab6214ed6004f.tar.gz
php-sparkpost-da6b12d6650868ea48afcb5a960ab6214ed6004f.tar.bz2
MA-1084 #time 20m functionally tested and fixed minor issues.
-rw-r--r--lib/SparkPost/Transmission.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SparkPost/Transmission.php b/lib/SparkPost/Transmission.php
index 0184453..0149777 100644
--- a/lib/SparkPost/Transmission.php
+++ b/lib/SparkPost/Transmission.php
@@ -148,7 +148,7 @@ class Transmission {
//send the request
try {
- $response = $request->post(self::getBaseUrl($hostConfig), array('authorization' => $hostConfig['key']), $model, array("verify"=>$hostConfig['strictSSL']))->send();
+ $response = $request->post(self::getBaseUrl($hostConfig), array('authorization' => $hostConfig['key']), json_encode($model), array("verify"=>$hostConfig['strictSSL']))->send();
return $response->json();
} catch (RequestException $exception) {
$response = $exception->getResponse();