Skip to content

Commit dbeb284

Browse files
committed
Release: v5.0.0
- Support new Recommend Items to Item Segment endpoint - Series API improvements: - Add Series endpoint creates associated Item for the Series automatically (based on the cascadeCreate parameter) - Breaking change: Remove From Series no longer requires the time parameter - Removed deprecated Groups endpoints
1 parent 4709132 commit dbeb284

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+497
-746
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ or
1717
```
1818
{
1919
"require": {
20-
"recombee/php-api-client": "^4.1.2"
20+
"recombee/php-api-client": "^5.0.0"
2121
}
2222
}
2323
```

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
}
1111
],
1212
"require": {
13-
"php": ">=7.2.0",
14-
"guzzlehttp/guzzle": "^6.0.0 || ^7.0.0"
13+
"php": ">=7.2 || ^8.0",
14+
"guzzlehttp/guzzle": "^6.0.0 || ^7.0.0"
1515
},
1616
"require-dev": {
17-
"phpunit/phpunit": "^9.2.2",
18-
"phpdocumentor/phpdocumentor": "2.*"
17+
"phpunit/phpunit": "^9.5",
18+
"phpdocumentor/phpdocumentor": "^3.0"
1919
},
2020
"autoload": {
2121
"psr-4": {

phpdoc.dist.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
<files>
1414
<directory>src</directory>
1515
</files>
16-
</phpdocumentor>
16+
</phpdocumentor>

src/RecommApi/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected function getBaseUri() {
8686
}
8787

8888
protected function getUserAgent() {
89-
$user_agent = 'recombee-php-api-client/4.1.2';
89+
$user_agent = 'recombee-php-api-client/5.0.0';
9090
if (isset($this->options['serviceName']))
9191
$user_agent .= ' '.($this->options['serviceName']);
9292
return $user_agent;

src/RecommApi/Exceptions/ResponseException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ResponseException extends ApiException{
2525
*/
2626
public $description;
2727

28-
public function __construct($request, $status_code, $description, \Exception $previous = null) {
28+
public function __construct($request, $status_code, $description, ?\Exception $previous = null) {
2929
$this->request = $request;
3030
$this->status_code = $status_code;
3131
$this->description = $description;

src/RecommApi/Requests/AddBookmark.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function __construct($user_id, $item_id, $optional = array()) {
7777
if (!in_array($key, $existing_optional))
7878
throw new UnknownOptionalParameterException($key);
7979
}
80-
$this->timeout = 1000;
80+
$this->timeout = 3000;
8181
$this->ensure_https = false;
8282
}
8383

src/RecommApi/Requests/AddCartAddition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function __construct($user_id, $item_id, $optional = array()) {
9393
if (!in_array($key, $existing_optional))
9494
throw new UnknownOptionalParameterException($key);
9595
}
96-
$this->timeout = 1000;
96+
$this->timeout = 3000;
9797
$this->ensure_https = false;
9898
}
9999

src/RecommApi/Requests/AddDetailView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function __construct($user_id, $item_id, $optional = array()) {
8585
if (!in_array($key, $existing_optional))
8686
throw new UnknownOptionalParameterException($key);
8787
}
88-
$this->timeout = 1000;
88+
$this->timeout = 3000;
8989
$this->ensure_https = false;
9090
}
9191

src/RecommApi/Requests/AddGroup.php

Lines changed: 0 additions & 66 deletions
This file was deleted.

src/RecommApi/Requests/AddItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AddItem extends Request {
2626
*/
2727
public function __construct($item_id) {
2828
$this->item_id = $item_id;
29-
$this->timeout = 1000;
29+
$this->timeout = 3000;
3030
$this->ensure_https = false;
3131
}
3232

0 commit comments

Comments
 (0)