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: lib/recombee_api_client/api/add_item_property.rb
+23-9Lines changed: 23 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ module RecombeeApiClient
10
10
# Adding an item property is somewhat equivalent to adding a column to the table of items. The items may be characterized by various properties of different types.
11
11
#
12
12
classAddItemProperty < ApiRequest
13
-
attr_reader:property_name,:type
13
+
attr_reader:property_name,:type,:role,:metadata
14
14
attr_accessor:timeout,:ensure_https
15
15
16
16
##
@@ -19,15 +19,15 @@ class AddItemProperty < ApiRequest
19
19
#
20
20
# - +type+ -> Value type of the item property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`, `image` or `imageList`.
21
21
#
22
-
# * `int`- Signed integer number.
22
+
# * `int`- Signed integer number.
23
23
#
24
24
# * `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard).
25
25
#
26
26
# * `string` - UTF-8 string.
27
27
#
28
28
# * `boolean` - *true* / *false*
29
29
#
30
-
# * `timestamp` - Value representing date and time.
30
+
# * `timestamp` - Value representing date and time. ISO8601-1 pattern (string) or UTC epoch time (number).
31
31
#
32
32
# * `set` - Set of strings.
33
33
#
@@ -36,11 +36,23 @@ class AddItemProperty < ApiRequest
36
36
# * `imageList` - List of URLs that refer to images.
37
37
#
38
38
#
39
-
definitialize(property_name,type)
39
+
# * *Optional arguments (given as hash optional)*
40
+
# - +role+ -> [Role](https://docs.recombee.com/api/property_roles_metadata#roles) to assign to the property.
41
+
#
42
+
# - +metadata+ -> List of [metadata](https://docs.recombee.com/api/property_roles_metadata#metadata) entries to assign to the property.
Copy file name to clipboardExpand all lines: lib/recombee_api_client/api/add_user_property.rb
+22-8Lines changed: 22 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ module RecombeeApiClient
10
10
# Adding a user property is somewhat equivalent to adding a column to the table of users. The users may be characterized by various properties of different types.
11
11
#
12
12
classAddUserProperty < ApiRequest
13
-
attr_reader:property_name,:type
13
+
attr_reader:property_name,:type,:role,:metadata
14
14
attr_accessor:timeout,:ensure_https
15
15
16
16
##
@@ -27,16 +27,28 @@ class AddUserProperty < ApiRequest
27
27
#
28
28
# * `boolean` - *true* / *false*
29
29
#
30
-
# * `timestamp` - Value representing date and time.
30
+
# * `timestamp` - Value representing date and time. ISO8601-1 pattern (string) or UTC epoch time (number).
31
31
#
32
32
# * `set` - Set of strings.
33
33
#
34
34
#
35
-
definitialize(property_name,type)
35
+
# * *Optional arguments (given as hash optional)*
36
+
# - +role+ -> [Role](https://docs.recombee.com/api/property_roles_metadata#roles) to assign to the property.
37
+
#
38
+
# - +metadata+ -> List of [metadata](https://docs.recombee.com/api/property_roles_metadata#metadata) entries to assign to the property.
Copy file name to clipboardExpand all lines: lib/recombee_api_client/api/recommend_next_item_segments.rb
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -7,23 +7,24 @@ module RecombeeApiClient
7
7
require_relative'../errors'
8
8
9
9
##
10
-
# Returns Item segments that shall be shown to a user as next recommendations when the user e.g. scrolls the page down (*infinite scroll*) or goes to the next page.
10
+
# Returns [Item Segments](https://docs.recombee.com/segmentations) to be shown as the next recommendations when a user scrolls (e.g., within a carousel or feed of Item Segments such as brands, artists, topics, or categories).
11
+
#
12
+
# The request requires the `recommId` of a base recommendation request and the number of Segments to return (`count`).
11
13
#
12
-
# It accepts `recommId` of a base recommendation request (e.g., request from the first page) and the number of segments that shall be returned (`count`).
13
14
# The base request can be one of:
14
15
# - [Recommend Item Segments to Item](https://docs.recombee.com/api#recommend-item-segments-to-item)
15
16
# - [Recommend Item Segments to User](https://docs.recombee.com/api#recommend-item-segments-to-user)
16
17
# - [Recommend Item Segments to Item Segment](https://docs.recombee.com/api#recommend-item-segments-to-item-segment)
# All the other parameters are inherited from the base request.
20
+
# All other parameters are inherited from the base request associated with the provided `recommId`.
20
21
#
21
-
# *Recommend next Item segments* can be called many times for a single `recommId` and each call returns different (previously not recommended) segments.
22
-
# The number of *Recommend next Item segments* calls performed so far is returned in the `numberNextRecommsCalls` field.
22
+
# This endpoint can be called multiple times for a single `recommId`. Each call returns different Item Segments that have not been recommended in previous calls.
23
+
# The number of calls made so far is returned in the `numberNextRecommsCalls` field.
23
24
#
24
-
# *Recommend next Item segments* can be requested up to 30 minutes after the base request or a previous *Recommend next Item segments* call.
25
+
# Requests can be made up to 30 minutes after the base request or the most recent Recommend Next Item Segments call.
25
26
#
26
-
# For billing purposes, each call to *Recommend next Item segments* is counted as a separate recommendation request.
27
+
# For billing purposes, each call to this endpoint is counted as a separate recommendation request.
0 commit comments