Package recombee_api_client :: Package api_requests :: Module list_items :: Class ListItems
[hide private]
[frames] | no frames]

Class ListItems

source code

     object --+    
              |    
request.Request --+
                  |
                 ListItems

Gets a list of IDs of items currently present in the catalog.

Instance Methods [hide private]
 
__init__(self, filter=UUID('1c399daf-9db8-481c-88df-6a0b452ea30c'), count=UUID('1c399daf-9db8-481c-88df-6a0b452ea30c'), offset=UUID('1c399daf-9db8-481c-88df-6a0b452ea30c'), return_properties=UUID('1c399daf-9db8-481c-88df-6a0b452ea30c'), included_properties=UUID('1c399daf-9db8-481c-88df-6a0b452ea30c'))
Optional parameters:
source code
 
get_body_parameters(self)
Values of body parameters as a dictionary (name of parameter: value of the parameter).
source code
 
get_query_parameters(self)
Values of query parameters as a dictionary (name of parameter: value of the parameter).
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from request.Request: quote_path_param

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filter=UUID('1c399daf-9db8-481c-88df-6a0b452ea30c'), count=UUID('1c399daf-9db8-481c-88df-6a0b452ea30c'), offset=UUID('1c399daf-9db8-481c-88df-6a0b452ea30c'), return_properties=UUID('1c399daf-9db8-481c-88df-6a0b452ea30c'), included_properties=UUID('1c399daf-9db8-481c-88df-6a0b452ea30c'))
(Constructor)

source code 

Optional parameters:

Parameters:
  • 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.
  • count - The number of items to be listed.
  • offset - Specifies the number of items to skip (ordered by `itemId`).
  • return_properties - With `returnProperties=true`, property values of the listed items are returned along with their IDs in a JSON dictionary.

    Example response:

    ```

    [

    {

    "itemId": "tv-178",

    "description": "4K TV with 3D feature",

    "categories": ["Electronics", "Televisions"],

    "price": 342,

    "url": "myshop.com/tv-178" },

    {

    "itemId": "mixer-42",

    "description": "Stainless Steel Mixer",

    "categories": ["Home & Kitchen"],

    "price": 39,

    "url": "myshop.com/mixer-42" }

    ]

    ```

  • included_properties - Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.

    Example response for `includedProperties=description,price`:

    ```

    [

    {

    "itemId": "tv-178",

    "description": "4K TV with 3D feature",

    "price": 342 },

    {

    "itemId": "mixer-42",

    "description": "Stainless Steel Mixer",

    "price": 39 }

    ]

    ```

Overrides: object.__init__