You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/RecommApi/Requests/AddBookmark.php
+9-6
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ class AddBookmark extends Request {
23
23
*/
24
24
protected$item_id;
25
25
/**
26
-
* @var string|float $timestamp Unix timestamp of the bookmark. If you don't have the timestamp value available, you may use some artificial value, such as 0. It is preferable, however, to provide the timestamp whenever possible as the user's preferences may evolve over time.
26
+
* @var string|float $timestamp UTC timestamp of the bookmark as ISO8601-1 pattern or UTC epoch time. The default valueis the current time.
27
27
*/
28
28
protected$timestamp;
29
29
/**
@@ -39,22 +39,24 @@ class AddBookmark extends Request {
39
39
* Construct the request
40
40
* @param string $user_id User who bookmarked the item
41
41
* @param string $item_id Bookmarked item
42
-
* @param string|float $timestamp Unix timestamp of the bookmark. If you don't have the timestamp value available, you may use some artificial value, such as 0. It is preferable, however, to provide the timestamp whenever possible as the user's preferences may evolve over time.
43
42
* @param array $optional Optional parameters given as an array containing pairs name of the parameter => value
44
43
* - Allowed parameters:
44
+
* - *timestamp*
45
+
* - Type: string|float
46
+
* - Description: UTC timestamp of the bookmark as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
45
47
* - *cascadeCreate*
46
48
* - Type: bool
47
49
* - Description: Sets whether the given user/item should be created if not present in the database.
48
50
* @throws Exceptions\UnknownOptionalParameterException UnknownOptionalParameterException if an unknown optional parameter is given in $optional
Copy file name to clipboardExpand all lines: src/RecommApi/Requests/AddCartAddition.php
+9-6
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ class AddCartAddition extends Request {
23
23
*/
24
24
protected$item_id;
25
25
/**
26
-
* @var string|float $timestamp Unix timestamp of the cart addition. If you don't have the timestamp value available, you may use some artificial value, such as 0. It is preferable, however, to provide the timestamp whenever possible as the user's preferences may evolve over time.
26
+
* @var string|float $timestamp UTC timestamp of the cart addition as ISO8601-1 pattern or UTC epoch time. The default valueis the current time.
27
27
*/
28
28
protected$timestamp;
29
29
/**
@@ -39,22 +39,24 @@ class AddCartAddition extends Request {
39
39
* Construct the request
40
40
* @param string $user_id User who added the item to the cart
41
41
* @param string $item_id Item added to the cart
42
-
* @param string|float $timestamp Unix timestamp of the cart addition. If you don't have the timestamp value available, you may use some artificial value, such as 0. It is preferable, however, to provide the timestamp whenever possible as the user's preferences may evolve over time.
43
42
* @param array $optional Optional parameters given as an array containing pairs name of the parameter => value
44
43
* - Allowed parameters:
44
+
* - *timestamp*
45
+
* - Type: string|float
46
+
* - Description: UTC timestamp of the cart addition as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
45
47
* - *cascadeCreate*
46
48
* - Type: bool
47
49
* - Description: Sets whether the given user/item should be created if not present in the database.
48
50
* @throws Exceptions\UnknownOptionalParameterException UnknownOptionalParameterException if an unknown optional parameter is given in $optional
Copy file name to clipboardExpand all lines: src/RecommApi/Requests/AddDetailView.php
+9-6
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ class AddDetailView extends Request {
23
23
*/
24
24
protected$item_id;
25
25
/**
26
-
* @var string|float $timestamp Unix timestamp of the view. If you don't have the timestamp value available, you may use some artificial value, such as 0. It is preferable, however, to provide the timestamp whenever possible as the user's preferences may evolve over time.
26
+
* @var string|float $timestamp UTC timestamp of the view as ISO8601-1 pattern or UTC epoch time. The default valueis the current time.
27
27
*/
28
28
protected$timestamp;
29
29
/**
@@ -43,9 +43,11 @@ class AddDetailView extends Request {
43
43
* Construct the request
44
44
* @param string $user_id User who viewed the item
45
45
* @param string $item_id Viewed item
46
-
* @param string|float $timestamp Unix timestamp of the view. If you don't have the timestamp value available, you may use some artificial value, such as 0. It is preferable, however, to provide the timestamp whenever possible as the user's preferences may evolve over time.
47
46
* @param array $optional Optional parameters given as an array containing pairs name of the parameter => value
48
47
* - Allowed parameters:
48
+
* - *timestamp*
49
+
* - Type: string|float
50
+
* - Description: UTC timestamp of the view as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
49
51
* - *duration*
50
52
* - Type: int
51
53
* - Description: Duration of the view
@@ -54,15 +56,15 @@ class AddDetailView extends Request {
54
56
* - Description: Sets whether the given user/item should be created if not present in the database.
55
57
* @throws Exceptions\UnknownOptionalParameterException UnknownOptionalParameterException if an unknown optional parameter is given in $optional
Copy file name to clipboardExpand all lines: src/RecommApi/Requests/AddPurchase.php
+9-6
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ class AddPurchase extends Request {
23
23
*/
24
24
protected$item_id;
25
25
/**
26
-
* @var string|float $timestamp Unix timestamp of the purchase. If you don't have the timestamp value available, you may use some artificial value, such as 0. It is preferable, however, to provide the timestamp whenever possible as the user's preferences may evolve over time.
26
+
* @var string|float $timestamp UTC timestamp of the purchase as ISO8601-1 pattern or UTC epoch time. The default valueis the current time.
27
27
*/
28
28
protected$timestamp;
29
29
/**
@@ -39,22 +39,24 @@ class AddPurchase extends Request {
39
39
* Construct the request
40
40
* @param string $user_id User who purchased the item
41
41
* @param string $item_id Purchased item
42
-
* @param string|float $timestamp Unix timestamp of the purchase. If you don't have the timestamp value available, you may use some artificial value, such as 0. It is preferable, however, to provide the timestamp whenever possible as the user's preferences may evolve over time.
43
42
* @param array $optional Optional parameters given as an array containing pairs name of the parameter => value
44
43
* - Allowed parameters:
44
+
* - *timestamp*
45
+
* - Type: string|float
46
+
* - Description: UTC timestamp of the purchase as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
45
47
* - *cascadeCreate*
46
48
* - Type: bool
47
49
* - Description: Sets whether the given user/item should be created if not present in the database.
48
50
* @throws Exceptions\UnknownOptionalParameterException UnknownOptionalParameterException if an unknown optional parameter is given in $optional
Copy file name to clipboardExpand all lines: src/RecommApi/Requests/AddRating.php
+9-6
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ class AddRating extends Request {
23
23
*/
24
24
protected$item_id;
25
25
/**
26
-
* @var string|float $timestamp Unix timestamp of the rating. If you don't have the timestamp value available, you may use some artificial value, such as 0. It is preferable, however, to provide the timestamp whenever possible as the user's preferences may evolve over time.
26
+
* @var string|float $timestamp UTC timestamp of the rating as ISO8601-1 pattern or UTC epoch time. The default valueis the current time.
27
27
*/
28
28
protected$timestamp;
29
29
/**
@@ -43,24 +43,26 @@ class AddRating extends Request {
43
43
* Construct the request
44
44
* @param string $user_id User who submitted the rating
45
45
* @param string $item_id Rated item
46
-
* @param string|float $timestamp Unix timestamp of the rating. If you don't have the timestamp value available, you may use some artificial value, such as 0. It is preferable, however, to provide the timestamp whenever possible as the user's preferences may evolve over time.
47
46
* @param float $rating Rating rescaled to interval [-1.0,1.0], where -1.0 means the worst rating possible, 0.0 means neutral, and 1.0 means absolutely positive rating. For example, in the case of 5-star evaluations, rating = (numStars-3)/2 formula may be used for the conversion.
48
47
* @param array $optional Optional parameters given as an array containing pairs name of the parameter => value
49
48
* - Allowed parameters:
49
+
* - *timestamp*
50
+
* - Type: string|float
51
+
* - Description: UTC timestamp of the rating as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
50
52
* - *cascadeCreate*
51
53
* - Type: bool
52
54
* - Description: Sets whether the given user/item should be created if not present in the database.
53
55
* @throws Exceptions\UnknownOptionalParameterException UnknownOptionalParameterException if an unknown optional parameter is given in $optional
0 commit comments