Skip to content

Commit 1f3abaa

Browse files
authored
Merge pull request #42 from DripEmail/bs/increment-version
Increment version number
2 parents b311483 + a545dd7 commit 1f3abaa

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88

99
* Your improvement here!
1010

11+
## 1.5.0
12+
13+
* Adds shopper activity v3 end points (Thanks @RickKukiela!)
14+
1115
## 1.4.2
1216

1317
* Update composer.json to allow newer PHP.

src/Client.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
class Client
1919
{
20-
const VERSION = '1.4.2';
20+
const VERSION = '1.5.0';
2121

2222
/** @var string */
2323
protected $api_key = '';
@@ -450,7 +450,7 @@ public function record_event($params)
450450
*/
451451
public function create_or_update_cart($params)
452452
{
453-
if(strstr($this->api_end_point, '/v3') === false) {
453+
if (strstr($this->api_end_point, '/v3') === false) {
454454
throw new Exception(__CLASS__ . '::' . __METHOD__ . ' only supports the APIv3 endpoint.');
455455
}
456456
return $this->make_request("$this->account_id/shopper_activity/cart", $params, self::POST);
@@ -467,7 +467,7 @@ public function create_or_update_cart($params)
467467
*/
468468
public function create_or_update_order($params)
469469
{
470-
if(strstr($this->api_end_point, '/v3') === false) {
470+
if (strstr($this->api_end_point, '/v3') === false) {
471471
throw new Exception(__CLASS__ . '::' . __METHOD__ . ' only supports the APIv3 endpoint.');
472472
}
473473
return $this->make_request("$this->account_id/shopper_activity/order", $params, self::POST);
@@ -484,7 +484,7 @@ public function create_or_update_order($params)
484484
*/
485485
public function create_or_update_product($params)
486486
{
487-
if(strstr($this->api_end_point, '/v3') === false) {
487+
if (strstr($this->api_end_point, '/v3') === false) {
488488
throw new Exception(__CLASS__ . '::' . __METHOD__ . ' only supports the APIv3 endpoint.');
489489
}
490490
return $this->make_request("$this->account_id/shopper_activity/product", $params, self::POST);

0 commit comments

Comments
 (0)