diff options
author | nornholdj <nornholdj@gmail.com> | 2014-11-13 14:30:15 -0500 |
---|---|---|
committer | nornholdj <nornholdj@gmail.com> | 2014-11-13 14:30:15 -0500 |
commit | da6b12d6650868ea48afcb5a960ab6214ed6004f (patch) | |
tree | a92e81a23f4b8a55512416423bb5d5fb79c715d0 | |
parent | aeb73442306e915e54d1f53d6fae68c060c57d73 (diff) | |
download | php-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.php | 2 |
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(); |