diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d6746b..956e843 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. * Your improvement here! +## 1.5.0 + +* Adds shopper activity v3 end points (Thanks @RickKukiela!) + ## 1.4.2 * Update composer.json to allow newer PHP. diff --git a/src/Client.php b/src/Client.php index 2b7685e..af8fa94 100644 --- a/src/Client.php +++ b/src/Client.php @@ -17,7 +17,7 @@ */ class Client { - const VERSION = '1.4.2'; + const VERSION = '1.5.0'; /** @var string */ protected $api_key = ''; @@ -450,7 +450,7 @@ public function record_event($params) */ public function create_or_update_cart($params) { - if(strstr($this->api_end_point, '/v3') === false) { + if (strstr($this->api_end_point, '/v3') === false) { throw new Exception(__CLASS__ . '::' . __METHOD__ . ' only supports the APIv3 endpoint.'); } return $this->make_request("$this->account_id/shopper_activity/cart", $params, self::POST); @@ -467,7 +467,7 @@ public function create_or_update_cart($params) */ public function create_or_update_order($params) { - if(strstr($this->api_end_point, '/v3') === false) { + if (strstr($this->api_end_point, '/v3') === false) { throw new Exception(__CLASS__ . '::' . __METHOD__ . ' only supports the APIv3 endpoint.'); } return $this->make_request("$this->account_id/shopper_activity/order", $params, self::POST); @@ -484,7 +484,7 @@ public function create_or_update_order($params) */ public function create_or_update_product($params) { - if(strstr($this->api_end_point, '/v3') === false) { + if (strstr($this->api_end_point, '/v3') === false) { throw new Exception(__CLASS__ . '::' . __METHOD__ . ' only supports the APIv3 endpoint.'); } return $this->make_request("$this->account_id/shopper_activity/product", $params, self::POST);