Skip to content

Commit 962bb1a

Browse files
committed
Support ListScenarios endpoint
1 parent 296f828 commit 962bb1a

31 files changed

+203
-128
lines changed

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 Ondřej Fiedler
3+
Copyright (c) 2015 Recombee
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

lib/recombee_api_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class RecombeeClient
1818
include HTTParty
1919

2020
BATCH_MAX_SIZE = 10000
21-
USER_AGENT = {'User-Agent' => 'recombee-ruby-api-client/5.0.0'}
21+
USER_AGENT = {'User-Agent' => 'recombee-ruby-api-client/5.1.0'}
2222

2323
##
2424
# - +account+ -> Name of your account at Recombee

lib/recombee_api_client/api/add_manual_reql_segment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module RecombeeApiClient
99
##
1010
#Adds a new Segment into a Manual ReQL Segmentation.
1111
#
12-
#The new Segment is defined by a [ReQL](https://docs.recombee.com/reql.html) filter that returns `true` for an item in case that this item belongs to the segment.
12+
#The new Segment is defined by a [ReQL](https://docs.recombee.com/reql) filter that returns `true` for an item in case that this item belongs to the segment.
1313
#
1414
class AddManualReqlSegment < ApiRequest
1515
attr_reader :segmentation_id, :segment_id, :filter, :title

lib/recombee_api_client/api/add_search_synonym.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module RecombeeApiClient
77
require_relative '../errors'
88

99
##
10-
#Adds a new synonym for the [Search items](https://docs.recombee.com/api.html#search-items).
10+
#Adds a new synonym for the [Search items](https://docs.recombee.com/api#search-items).
1111
#
1212
#When the `term` is used in the search query, the `synonym` is also used for the full-text search.
1313
#Unless `oneWay=true`, it works also in the opposite way (`synonym` -> `term`).

lib/recombee_api_client/api/create_auto_reql_segmentation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module RecombeeApiClient
77
require_relative '../errors'
88

99
##
10-
#Segment the items using a [ReQL](https://docs.recombee.com/reql.html) expression.
10+
#Segment the items using a [ReQL](https://docs.recombee.com/reql) expression.
1111
#
1212
#For each item, the expression should return a set that contains IDs of segments to which the item belongs to.
1313
#

lib/recombee_api_client/api/create_manual_reql_segmentation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module RecombeeApiClient
77
require_relative '../errors'
88

99
##
10-
#Segment the items using multiple [ReQL](https://docs.recombee.com/reql.html) filters.
10+
#Segment the items using multiple [ReQL](https://docs.recombee.com/reql) filters.
1111
#
1212
#Use the Add Manual ReQL Items Segment endpoint to create the individual segments.
1313
#

lib/recombee_api_client/api/delete_item.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module RecombeeApiClient
1111
#
1212
#If there are any *purchases*, *ratings*, *bookmarks*, *cart additions*, or *detail views* of the item present in the database, they will be deleted in cascade as well. Also, if the item is present in some *series*, it will be removed from all the *series* where present.
1313
#
14-
#If an item becomes obsolete/no longer available, it is meaningful to keep it in the catalog (along with all the interaction data, which are very useful), and **only exclude the item from recommendations**. In such a case, use [ReQL filter](https://docs.recombee.com/reql.html) instead of deleting the item completely.
14+
#If an item becomes obsolete/no longer available, it is meaningful to keep it in the catalog (along with all the interaction data, which are very useful), and **only exclude the item from recommendations**. In such a case, use [ReQL filter](https://docs.recombee.com/reql) instead of deleting the item completely.
1515
#
1616
class DeleteItem < ApiRequest
1717
attr_reader :item_id

lib/recombee_api_client/api/delete_more_items.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ module RecombeeApiClient
99
##
1010
#Deletes all the items that pass the filter.
1111
#
12-
#If an item becomes obsolete/no longer available, it is meaningful to **keep it in the catalog** (along with all the interaction data, which are very useful) and **only exclude the item from recommendations**. In such a case, use [ReQL filter](https://docs.recombee.com/reql.html) instead of deleting the item completely.
12+
#If an item becomes obsolete/no longer available, it is meaningful to **keep it in the catalog** (along with all the interaction data, which are very useful) and **only exclude the item from recommendations**. In such a case, use [ReQL filter](https://docs.recombee.com/reql) instead of deleting the item completely.
1313
class DeleteMoreItems < ApiRequest
1414
attr_reader :filter
1515
attr_accessor :timeout
1616
attr_accessor :ensure_https
1717

1818
##
1919
# * *Required arguments*
20-
# - +filter+ -> A [ReQL](https://docs.recombee.com/reql.html) expression, which returns `true` for the items that shall be updated.
20+
# - +filter+ -> A [ReQL](https://docs.recombee.com/reql) expression, which returns `true` for the items that shall be updated.
2121
#
2222
def initialize(filter)
2323
@filter = filter

lib/recombee_api_client/api/delete_search_synonym.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module RecombeeApiClient
77
require_relative '../errors'
88

99
##
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).
10+
#Deletes synonym of the given `id`. This synonym is no longer taken into account in the [Search items](https://docs.recombee.com/api#search-items).
1111
#
1212
class DeleteSearchSynonym < ApiRequest
1313
attr_reader :id

lib/recombee_api_client/api/list_items.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ class ListItems < ApiRequest
1616
##
1717
#
1818
# * *Optional arguments (given as hash optional)*
19-
# - +filter+ -> Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression, which allows you to filter items to be listed. Only the items for which the expression is *true* will be returned.
19+
# - +filter+ -> Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter items to be listed. Only the items for which the expression is *true* will be returned.
2020
# - +count+ -> The number of items to be listed.
2121
# - +offset+ -> Specifies the number of items to skip (ordered by `itemId`).
2222
# - +returnProperties+ -> With `returnProperties=true`, property values of the listed items are returned along with their IDs in a JSON dictionary.
2323
#
2424
#Example response:
25-
#```
25+
#```json
2626
# [
2727
# {
2828
# "itemId": "tv-178",
@@ -44,7 +44,7 @@ class ListItems < ApiRequest
4444
# - +includedProperties+ -> Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.
4545
#
4646
#Example response for `includedProperties=description,price`:
47-
#```
47+
#```json
4848
# [
4949
# {
5050
# "itemId": "tv-178",

0 commit comments

Comments
 (0)