Skip to content

Commit e72cca3

Browse files
committed
Create user_agent property in Client class (dynamic properties are deprecated)
1 parent 2ed6885 commit e72cca3

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ or
1717
```
1818
{
1919
"require": {
20-
"recombee/php-api-client": "^4.1.0"
20+
"recombee/php-api-client": "^4.1.1"
2121
}
2222
}
2323
```

src/RecommApi/Client.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class Client{
2222
protected $protocol;
2323
protected $base_uri;
2424
protected $options;
25+
protected $user_agent;
2526
protected $guzzle_client;
2627

2728
/**
@@ -85,7 +86,7 @@ protected function getBaseUri() {
8586
}
8687

8788
protected function getUserAgent() {
88-
$user_agent = 'recombee-php-api-client/4.1.0';
89+
$user_agent = 'recombee-php-api-client/4.1.1';
8990
if (isset($this->options['serviceName']))
9091
$user_agent .= ' '.($this->options['serviceName']);
9192
return $user_agent;

src/RecommApi/Requests/DeleteMoreItems.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DeleteMoreItems extends Request {
2626
*/
2727
public function __construct($filter) {
2828
$this->filter = $filter;
29-
$this->timeout = 1000;
29+
$this->timeout = 100000;
3030
$this->ensure_https = false;
3131
}
3232

src/RecommApi/Requests/SetValues.php

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ abstract class SetValues extends Request {
2525
*/
2626
protected $values;
2727

28+
/**
29+
* @var array $optional Optional parameters of the request. An array containing pairs name of the parameter => value.
30+
*/
2831
protected $optional;
2932

3033
/**

src/RecommApi/Requests/UpdateMoreItems.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class UpdateMoreItems extends Request {
3838
public function __construct($filter, $changes) {
3939
$this->filter = $filter;
4040
$this->changes = $changes;
41-
$this->timeout = 1000;
41+
$this->timeout = 100000;
4242
$this->ensure_https = false;
4343
}
4444

0 commit comments

Comments
 (0)