recombee_api_client 3.2.0 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/recombee_api_client/api/add_bookmark.rb +1 -1
  4. data/lib/recombee_api_client/api/add_cart_addition.rb +3 -3
  5. data/lib/recombee_api_client/api/add_detail_view.rb +1 -1
  6. data/lib/recombee_api_client/api/add_group.rb +1 -1
  7. data/lib/recombee_api_client/api/add_item.rb +2 -2
  8. data/lib/recombee_api_client/api/add_item_property.rb +1 -1
  9. data/lib/recombee_api_client/api/add_manual_reql_segment.rb +69 -0
  10. data/lib/recombee_api_client/api/add_purchase.rb +4 -4
  11. data/lib/recombee_api_client/api/add_rating.rb +1 -1
  12. data/lib/recombee_api_client/api/add_series.rb +1 -1
  13. data/lib/recombee_api_client/api/add_user_property.rb +2 -2
  14. data/lib/recombee_api_client/api/create_auto_reql_segmentation.rb +75 -0
  15. data/lib/recombee_api_client/api/create_manual_reql_segmentation.rb +71 -0
  16. data/lib/recombee_api_client/api/create_property_based_segmentation.rb +76 -0
  17. data/lib/recombee_api_client/api/delete_bookmark.rb +3 -3
  18. data/lib/recombee_api_client/api/delete_cart_addition.rb +3 -3
  19. data/lib/recombee_api_client/api/delete_detail_view.rb +3 -3
  20. data/lib/recombee_api_client/api/delete_group.rb +2 -2
  21. data/lib/recombee_api_client/api/delete_item.rb +3 -3
  22. data/lib/recombee_api_client/api/delete_manual_reql_segment.rb +52 -0
  23. data/lib/recombee_api_client/api/delete_more_items.rb +52 -0
  24. data/lib/recombee_api_client/api/delete_purchase.rb +3 -3
  25. data/lib/recombee_api_client/api/delete_rating.rb +2 -2
  26. data/lib/recombee_api_client/api/delete_search_synonym.rb +1 -1
  27. data/lib/recombee_api_client/api/delete_segmentation.rb +50 -0
  28. data/lib/recombee_api_client/api/delete_series.rb +1 -1
  29. data/lib/recombee_api_client/api/delete_user.rb +2 -2
  30. data/lib/recombee_api_client/api/delete_user_property.rb +1 -1
  31. data/lib/recombee_api_client/api/get_item_values.rb +2 -2
  32. data/lib/recombee_api_client/api/get_segmentation.rb +50 -0
  33. data/lib/recombee_api_client/api/get_user_values.rb +2 -2
  34. data/lib/recombee_api_client/api/insert_to_group.rb +2 -2
  35. data/lib/recombee_api_client/api/insert_to_series.rb +2 -2
  36. data/lib/recombee_api_client/api/list_group_items.rb +1 -1
  37. data/lib/recombee_api_client/api/list_item_bookmarks.rb +2 -2
  38. data/lib/recombee_api_client/api/list_item_cart_additions.rb +2 -2
  39. data/lib/recombee_api_client/api/list_item_detail_views.rb +2 -2
  40. data/lib/recombee_api_client/api/list_item_purchases.rb +2 -2
  41. data/lib/recombee_api_client/api/list_item_ratings.rb +2 -2
  42. data/lib/recombee_api_client/api/list_item_view_portions.rb +2 -2
  43. data/lib/recombee_api_client/api/list_items.rb +1 -1
  44. data/lib/recombee_api_client/api/list_segmentations.rb +51 -0
  45. data/lib/recombee_api_client/api/list_series_items.rb +2 -2
  46. data/lib/recombee_api_client/api/list_user_bookmarks.rb +1 -1
  47. data/lib/recombee_api_client/api/list_user_cart_additions.rb +1 -1
  48. data/lib/recombee_api_client/api/list_user_detail_views.rb +1 -1
  49. data/lib/recombee_api_client/api/list_user_purchases.rb +1 -1
  50. data/lib/recombee_api_client/api/list_user_ratings.rb +1 -1
  51. data/lib/recombee_api_client/api/list_user_view_portions.rb +1 -1
  52. data/lib/recombee_api_client/api/list_users.rb +1 -1
  53. data/lib/recombee_api_client/api/merge_users.rb +2 -2
  54. data/lib/recombee_api_client/api/recommend_item_segments_to_item.rb +131 -0
  55. data/lib/recombee_api_client/api/recommend_item_segments_to_item_segment.rb +131 -0
  56. data/lib/recombee_api_client/api/recommend_item_segments_to_user.rb +111 -0
  57. data/lib/recombee_api_client/api/recommend_items_to_item.rb +26 -26
  58. data/lib/recombee_api_client/api/recommend_items_to_user.rb +23 -23
  59. data/lib/recombee_api_client/api/recommend_next_items.rb +2 -2
  60. data/lib/recombee_api_client/api/recommend_users_to_item.rb +18 -18
  61. data/lib/recombee_api_client/api/recommend_users_to_user.rb +21 -21
  62. data/lib/recombee_api_client/api/reset_database.rb +1 -1
  63. data/lib/recombee_api_client/api/search_item_segments.rb +114 -0
  64. data/lib/recombee_api_client/api/search_items.rb +17 -17
  65. data/lib/recombee_api_client/api/set_view_portion.rb +3 -3
  66. data/lib/recombee_api_client/api/update_auto_reql_segmentation.rb +69 -0
  67. data/lib/recombee_api_client/api/update_manual_reql_segment.rb +67 -0
  68. data/lib/recombee_api_client/api/update_manual_reql_segmentation.rb +65 -0
  69. data/lib/recombee_api_client/api/update_more_items.rb +63 -0
  70. data/lib/recombee_api_client/api/update_property_based_segmentation.rb +69 -0
  71. data/lib/recombee_api_client/version.rb +1 -1
  72. data/lib/recombee_api_client.rb +40 -15
  73. data/recombee_api_client.gemspec +2 -2
  74. metadata +24 -8
  75. data/lib/recombee_api_client/api/item_based_recommendation.rb +0 -159
  76. data/lib/recombee_api_client/api/user_based_recommendation.rb +0 -143
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #Deletes an existing purchase uniquely specified by `userId`, `itemId`, and `timestamp` or all the purchases with given `userId` and `itemId` if `timestamp` is omitted.
10
+ #Deletes an existing purchase uniquely specified by `userId`, `itemId`, and `timestamp` or all the purchases with the given `userId` and `itemId` if `timestamp` is omitted.
11
11
  #
12
12
  class DeletePurchase < ApiRequest
13
13
  attr_reader :user_id, :item_id, :timestamp
@@ -17,10 +17,10 @@ module RecombeeApiClient
17
17
  ##
18
18
  # * *Required arguments*
19
19
  # - +user_id+ -> ID of the user who made the purchase.
20
- # - +item_id+ -> ID of the item of which was purchased.
20
+ # - +item_id+ -> ID of the item which was purchased.
21
21
  #
22
22
  # * *Optional arguments (given as hash optional)*
23
- # - +timestamp+ -> Unix timestamp of the purchase. If the `timestamp` is omitted, then all the purchases with given `userId` and `itemId` are deleted.
23
+ # - +timestamp+ -> Unix timestamp of the purchase. If the `timestamp` is omitted, then all the purchases with the given `userId` and `itemId` are deleted.
24
24
  #
25
25
  def initialize(user_id, item_id, optional = {})
26
26
  @user_id = user_id
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #Deletes an existing rating specified by (`userId`, `itemId`, `timestamp`) from the database or all the ratings with given `userId` and `itemId` if `timestamp` is omitted.
10
+ #Deletes an existing rating specified by (`userId`, `itemId`, `timestamp`) from the database or all the ratings with the given `userId` and `itemId` if `timestamp` is omitted.
11
11
  #
12
12
  class DeleteRating < ApiRequest
13
13
  attr_reader :user_id, :item_id, :timestamp
@@ -20,7 +20,7 @@ module RecombeeApiClient
20
20
  # - +item_id+ -> ID of the item which was rated.
21
21
  #
22
22
  # * *Optional arguments (given as hash optional)*
23
- # - +timestamp+ -> Unix timestamp of the rating. If the `timestamp` is omitted, then all the ratings with given `userId` and `itemId` are deleted.
23
+ # - +timestamp+ -> Unix timestamp of the rating. If the `timestamp` is omitted, then all the ratings with the given `userId` and `itemId` are deleted.
24
24
  #
25
25
  def initialize(user_id, item_id, optional = {})
26
26
  @user_id = user_id
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #Deletes synonym of given `id` and this synonym is no longer taken into account in the [Search items](https://docs.recombee.com/api.html#search-items).
10
+ #Deletes synonym of the given `id`. This synonym is no longer taken into account in the [Search items](https://docs.recombee.com/api.html#search-items).
11
11
  #
12
12
  class DeleteSearchSynonym < ApiRequest
13
13
  attr_reader :id
@@ -0,0 +1,50 @@
1
+ #
2
+ # This file is auto-generated, do not edit
3
+ #
4
+
5
+ module RecombeeApiClient
6
+ require_relative 'request'
7
+ require_relative '../errors'
8
+
9
+ ##
10
+ #Delete existing Segmentation.
11
+ #
12
+ class DeleteSegmentation < ApiRequest
13
+ attr_reader :segmentation_id
14
+ attr_accessor :timeout
15
+ attr_accessor :ensure_https
16
+
17
+ ##
18
+ # * *Required arguments*
19
+ # - +segmentation_id+ -> ID of the Segmentation that should be deleted
20
+ #
21
+ def initialize(segmentation_id)
22
+ @segmentation_id = segmentation_id
23
+ @timeout = 10000
24
+ @ensure_https = false
25
+ end
26
+
27
+ # HTTP method
28
+ def method
29
+ :delete
30
+ end
31
+
32
+ # Values of body parameters as a Hash
33
+ def body_parameters
34
+ p = Hash.new
35
+ p
36
+ end
37
+
38
+ # Values of query parameters as a Hash.
39
+ # name of parameter => value of the parameter
40
+ def query_parameters
41
+ params = {}
42
+ params
43
+ end
44
+
45
+ # Relative path to the endpoint
46
+ def path
47
+ "/{databaseId}/segmentations/#{@segmentation_id}"
48
+ end
49
+ end
50
+ end
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #Deletes the series of given `seriesId` from the database.
10
+ #Deletes the series of the given `seriesId` from the database.
11
11
  #
12
12
  #Deleting a series will only delete assignment of items to it, not the items themselves!
13
13
  #
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #Deletes a user of given *userId* from the database.
10
+ #Deletes a user of the given *userId* from the database.
11
11
  #
12
12
  #If there are any purchases, ratings, bookmarks, cart additions or detail views made by the user present in the database, they will be deleted in cascade as well.
13
13
  #
@@ -18,7 +18,7 @@ module RecombeeApiClient
18
18
 
19
19
  ##
20
20
  # * *Required arguments*
21
- # - +user_id+ -> ID of the user to be added.
21
+ # - +user_id+ -> ID of the user to be deleted.
22
22
  #
23
23
  def initialize(user_id)
24
24
  @user_id = user_id
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #Deleting an user property is roughly equivalent to removing a column from the table of users.
10
+ #Deleting a user property is roughly equivalent to removing a column from the table of users.
11
11
  #
12
12
  class DeleteUserProperty < ApiRequest
13
13
  attr_reader :property_name
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #Get all the current property values of a given item.
10
+ #Gets all the current property values of the given item.
11
11
  #
12
12
  class GetItemValues < ApiRequest
13
13
  attr_reader :item_id
@@ -16,7 +16,7 @@ module RecombeeApiClient
16
16
 
17
17
  ##
18
18
  # * *Required arguments*
19
- # - +item_id+ -> ID of the item properties of which are to be obtained.
19
+ # - +item_id+ -> ID of the item whose properties are to be obtained.
20
20
  #
21
21
  #
22
22
  def initialize(item_id)
@@ -0,0 +1,50 @@
1
+ #
2
+ # This file is auto-generated, do not edit
3
+ #
4
+
5
+ module RecombeeApiClient
6
+ require_relative 'request'
7
+ require_relative '../errors'
8
+
9
+ ##
10
+ #Get existing Segmentation.
11
+ #
12
+ class GetSegmentation < ApiRequest
13
+ attr_reader :segmentation_id
14
+ attr_accessor :timeout
15
+ attr_accessor :ensure_https
16
+
17
+ ##
18
+ # * *Required arguments*
19
+ # - +segmentation_id+ -> ID of the Segmentation that should be returned
20
+ #
21
+ def initialize(segmentation_id)
22
+ @segmentation_id = segmentation_id
23
+ @timeout = 10000
24
+ @ensure_https = false
25
+ end
26
+
27
+ # HTTP method
28
+ def method
29
+ :get
30
+ end
31
+
32
+ # Values of body parameters as a Hash
33
+ def body_parameters
34
+ p = Hash.new
35
+ p
36
+ end
37
+
38
+ # Values of query parameters as a Hash.
39
+ # name of parameter => value of the parameter
40
+ def query_parameters
41
+ params = {}
42
+ params
43
+ end
44
+
45
+ # Relative path to the endpoint
46
+ def path
47
+ "/{databaseId}/segmentations/list/#{@segmentation_id}"
48
+ end
49
+ end
50
+ end
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #Get all the current property values of a given user.
10
+ #Gets all the current property values of the given user.
11
11
  #
12
12
  class GetUserValues < ApiRequest
13
13
  attr_reader :user_id
@@ -16,7 +16,7 @@ module RecombeeApiClient
16
16
 
17
17
  ##
18
18
  # * *Required arguments*
19
- # - +user_id+ -> ID of the user properties of which are to be obtained.
19
+ # - +user_id+ -> ID of the user whose properties are to be obtained.
20
20
  #
21
21
  #
22
22
  def initialize(user_id)
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #Inserts an existing item/group into group of given `groupId`.
10
+ #Inserts an existing item/group into a group of the given `groupId`.
11
11
  #
12
12
  class InsertToGroup < ApiRequest
13
13
  attr_reader :group_id, :item_type, :item_id, :cascade_create
@@ -21,7 +21,7 @@ module RecombeeApiClient
21
21
  # - +item_id+ -> ID of the item iff `itemType` is `item`. ID of the group iff `itemType` is `group`.
22
22
  #
23
23
  # * *Optional arguments (given as hash optional)*
24
- # - +cascadeCreate+ -> Indicates that any non-existing entity specified within the request should be created (as is corresponding PUT requests were invoked). This concerns both the `groupId` and the `groupId`. If `cascadeCreate` is set true, the behavior also depends on the `itemType`. Either items or group may be created if not present in the database.
24
+ # - +cascadeCreate+ -> Indicates that any non-existing entity specified within the request should be created (as if corresponding PUT requests were invoked). This concerns both the `groupId` and the `groupId`. If `cascadeCreate` is set to true, the behavior also depends on the `itemType`. Either items or group may be created if not present in the database.
25
25
  #
26
26
  def initialize(group_id, item_type, item_id, optional = {})
27
27
  @group_id = group_id
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #Inserts an existing item/series into series of given seriesId at position determined by time.
10
+ #Inserts an existing item/series into a series of the given seriesId at a position determined by time.
11
11
  #
12
12
  class InsertToSeries < ApiRequest
13
13
  attr_reader :series_id, :item_type, :item_id, :time, :cascade_create
@@ -22,7 +22,7 @@ module RecombeeApiClient
22
22
  # - +time+ -> Time index used for sorting items in the series. According to time, items are sorted within series in ascending order. In the example of TV show episodes, the episode number is a natural choice to be passed as time.
23
23
  #
24
24
  # * *Optional arguments (given as hash optional)*
25
- # - +cascadeCreate+ -> Indicates that any non-existing entity specified within the request should be created (as is corresponding PUT requests were invoked). This concerns both the `seriesId` and the `itemId`. If `cascadeCreate` is set true, the behavior also depends on the `itemType`. Either item or series may be created if not present in the database.
25
+ # - +cascadeCreate+ -> Indicates that any non-existing entity specified within the request should be created (as if corresponding PUT requests were invoked). This concerns both the `seriesId` and the `itemId`. If `cascadeCreate` is set to true, the behavior also depends on the `itemType`. Either item or series may be created if not present in the database.
26
26
  #
27
27
  def initialize(series_id, item_type, item_id, time, optional = {})
28
28
  @series_id = series_id
@@ -15,7 +15,7 @@ module RecombeeApiClient
15
15
 
16
16
  ##
17
17
  # * *Required arguments*
18
- # - +group_id+ -> ID of the group items of which are to be listed.
18
+ # - +group_id+ -> ID of the group whose items are to be listed.
19
19
  #
20
20
  def initialize(group_id)
21
21
  @group_id = group_id
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #List all the ever-made bookmarks of a given item.
10
+ #Lists all the ever-made bookmarks of the given item.
11
11
  class ListItemBookmarks < ApiRequest
12
12
  attr_reader :item_id
13
13
  attr_accessor :timeout
@@ -15,7 +15,7 @@ module RecombeeApiClient
15
15
 
16
16
  ##
17
17
  # * *Required arguments*
18
- # - +item_id+ -> ID of the item of which the bookmarks are to be listed.
18
+ # - +item_id+ -> ID of the item whose bookmarks are to be listed.
19
19
  #
20
20
  #
21
21
  def initialize(item_id)
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #List all the ever-made cart addition of a given item.
10
+ #Lists all the ever-made cart additions of the given item.
11
11
  class ListItemCartAdditions < ApiRequest
12
12
  attr_reader :item_id
13
13
  attr_accessor :timeout
@@ -15,7 +15,7 @@ module RecombeeApiClient
15
15
 
16
16
  ##
17
17
  # * *Required arguments*
18
- # - +item_id+ -> ID of the item of which the cart addition are to be listed.
18
+ # - +item_id+ -> ID of the item whose cart additions are to be listed.
19
19
  #
20
20
  #
21
21
  def initialize(item_id)
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #List all the detail views of a given item ever made by different users.
10
+ #Lists all the detail views of the given item ever made by different users.
11
11
  class ListItemDetailViews < ApiRequest
12
12
  attr_reader :item_id
13
13
  attr_accessor :timeout
@@ -15,7 +15,7 @@ module RecombeeApiClient
15
15
 
16
16
  ##
17
17
  # * *Required arguments*
18
- # - +item_id+ -> ID of the item of which the detail views are to be listed.
18
+ # - +item_id+ -> ID of the item whose detail views are to be listed.
19
19
  #
20
20
  #
21
21
  def initialize(item_id)
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #List all the ever-made purchases of a given item.
10
+ #Lists all the ever-made purchases of the given item.
11
11
  class ListItemPurchases < ApiRequest
12
12
  attr_reader :item_id
13
13
  attr_accessor :timeout
@@ -15,7 +15,7 @@ module RecombeeApiClient
15
15
 
16
16
  ##
17
17
  # * *Required arguments*
18
- # - +item_id+ -> ID of the item of which the pucrhases are to be listed.
18
+ # - +item_id+ -> ID of the item whose purchases are to be listed.
19
19
  #
20
20
  #
21
21
  def initialize(item_id)
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #List all the ratings of an item ever submitted by different users.
10
+ #Lists all the ratings of an item ever submitted by different users.
11
11
  class ListItemRatings < ApiRequest
12
12
  attr_reader :item_id
13
13
  attr_accessor :timeout
@@ -15,7 +15,7 @@ module RecombeeApiClient
15
15
 
16
16
  ##
17
17
  # * *Required arguments*
18
- # - +item_id+ -> ID of the item of which the ratings are to be listed.
18
+ # - +item_id+ -> ID of the item whose ratings are to be listed.
19
19
  #
20
20
  #
21
21
  def initialize(item_id)
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #List all the view portions of an item ever submitted by different users.
10
+ #Lists all the view portions of an item ever submitted by different users.
11
11
  #
12
12
  class ListItemViewPortions < ApiRequest
13
13
  attr_reader :item_id
@@ -16,7 +16,7 @@ module RecombeeApiClient
16
16
 
17
17
  ##
18
18
  # * *Required arguments*
19
- # - +item_id+ -> ID of the item of which the view portions are to be listed.
19
+ # - +item_id+ -> ID of the item whose view portions are to be listed.
20
20
  #
21
21
  #
22
22
  def initialize(item_id)
@@ -41,7 +41,7 @@ module RecombeeApiClient
41
41
  # ]
42
42
  #```
43
43
  #
44
- # - +includedProperties+ -> Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.
44
+ # - +includedProperties+ -> Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.
45
45
  #
46
46
  #Example response for `includedProperties=description,price`:
47
47
  #```
@@ -0,0 +1,51 @@
1
+ #
2
+ # This file is auto-generated, do not edit
3
+ #
4
+
5
+ module RecombeeApiClient
6
+ require_relative 'request'
7
+ require_relative '../errors'
8
+
9
+ ##
10
+ #Return all existing items Segmentations.
11
+ #
12
+ class ListSegmentations < ApiRequest
13
+ attr_reader :source_type
14
+ attr_accessor :timeout
15
+ attr_accessor :ensure_https
16
+
17
+ ##
18
+ # * *Required arguments*
19
+ # - +source_type+ -> List Segmentations based on a particular type of data. Currently only `items` are supported.
20
+ #
21
+ def initialize(source_type)
22
+ @source_type = source_type
23
+ @timeout = 10000
24
+ @ensure_https = false
25
+ end
26
+
27
+ # HTTP method
28
+ def method
29
+ :get
30
+ end
31
+
32
+ # Values of body parameters as a Hash
33
+ def body_parameters
34
+ p = Hash.new
35
+ p
36
+ end
37
+
38
+ # Values of query parameters as a Hash.
39
+ # name of parameter => value of the parameter
40
+ def query_parameters
41
+ params = {}
42
+ params['sourceType'] = @source_type
43
+ params
44
+ end
45
+
46
+ # Relative path to the endpoint
47
+ def path
48
+ "/{databaseId}/segmentations/list/"
49
+ end
50
+ end
51
+ end
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #List all the items present in the given series, sorted according to their time index values.
10
+ #Lists all the items present in the given series, sorted according to their time index values.
11
11
  class ListSeriesItems < ApiRequest
12
12
  attr_reader :series_id
13
13
  attr_accessor :timeout
@@ -15,7 +15,7 @@ module RecombeeApiClient
15
15
 
16
16
  ##
17
17
  # * *Required arguments*
18
- # - +series_id+ -> ID of the series items of which are to be listed.
18
+ # - +series_id+ -> ID of the series whose items are to be listed.
19
19
  #
20
20
  def initialize(series_id)
21
21
  @series_id = series_id
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #List all the bookmarks ever made by a given user.
10
+ #Lists all the bookmarks ever made by the given user.
11
11
  class ListUserBookmarks < ApiRequest
12
12
  attr_reader :user_id
13
13
  attr_accessor :timeout
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #List all the cart additions ever made by a given user.
10
+ #Lists all the cart additions ever made by the given user.
11
11
  class ListUserCartAdditions < ApiRequest
12
12
  attr_reader :user_id
13
13
  attr_accessor :timeout
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #Lists all the detail views of different items ever made by a given user.
10
+ #Lists all the detail views of different items ever made by the given user.
11
11
  class ListUserDetailViews < ApiRequest
12
12
  attr_reader :user_id
13
13
  attr_accessor :timeout
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #List all the purchases ever made by a given user.
10
+ #Lists all the purchases ever made by the given user.
11
11
  class ListUserPurchases < ApiRequest
12
12
  attr_reader :user_id
13
13
  attr_accessor :timeout
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #List all the ratings ever submitted by a given user.
10
+ #Lists all the ratings ever submitted by the given user.
11
11
  class ListUserRatings < ApiRequest
12
12
  attr_reader :user_id
13
13
  attr_accessor :timeout
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #List all the view portions ever submitted by a given user.
10
+ #Lists all the view portions ever submitted by the given user.
11
11
  #
12
12
  class ListUserViewPortions < ApiRequest
13
13
  attr_reader :user_id
@@ -37,7 +37,7 @@ module RecombeeApiClient
37
37
  # ]
38
38
  #```
39
39
  #
40
- # - +includedProperties+ -> Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.
40
+ # - +includedProperties+ -> Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.
41
41
  #
42
42
  #Example response for `includedProperties=country`:
43
43
  #```
@@ -7,7 +7,7 @@ module RecombeeApiClient
7
7
  require_relative '../errors'
8
8
 
9
9
  ##
10
- #Merges interactions (purchases, ratings, bookmarks, detail views ...) of two different users under a single user ID. This is especially useful for online e-commerce applications working with anonymous users identified by unique tokens such as the session ID. In such applications, it may often happen that a user owns a persistent account, yet accesses the system anonymously while, e.g., putting items into a shopping cart. At some point in time, such as when the user wishes to confirm the purchase, (s)he logs into the system using his/her username and password. The interactions made under anonymous session ID then become connected with the persistent account, and merging these two together becomes desirable.
10
+ #Merges interactions (purchases, ratings, bookmarks, detail views ...) of two different users under a single user ID. This is especially useful for online e-commerce applications working with anonymous users identified by unique tokens such as the session ID. In such applications, it may often happen that a user owns a persistent account, yet accesses the system anonymously while, e.g., putting items into a shopping cart. At some point in time, such as when the user wishes to confirm the purchase, (s)he logs into the system using his/her username and password. The interactions made under anonymous session ID then become connected with the persistent account, and merging these two becomes desirable.
11
11
  #
12
12
  #
13
13
  #Merging happens between two users referred to as the *target* and the *source*. After the merge, all the interactions of the source user are attributed to the target user, and the source user is **deleted**.
@@ -19,7 +19,7 @@ module RecombeeApiClient
19
19
 
20
20
  ##
21
21
  # * *Required arguments*
22
- # - +target_user_id+ -> ID of the targer user.
22
+ # - +target_user_id+ -> ID of the target user.
23
23
  # - +source_user_id+ -> ID of the source user.
24
24
  #
25
25
  # * *Optional arguments (given as hash optional)*