Package recombee_api_client :: Package api_requests :: Module delete_rating :: Class DeleteRating
[hide private]
[frames] | no frames]

Class DeleteRating

source code

     object --+    
              |    
request.Request --+
                  |
                 DeleteRating

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.

Instance Methods [hide private]
 
__init__(self, user_id, item_id, timestamp=UUID('c0eaf06b-1b2e-4423-b976-e6255b67ce4e'))
Required 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, user_id, item_id, timestamp=UUID('c0eaf06b-1b2e-4423-b976-e6255b67ce4e'))
(Constructor)

source code 

Required parameters:

Parameters:
  • user_id - ID of the user who rated the item.
  • item_id - ID of the item which was rated.

    Optional parameters:

  • timestamp - Unix timestamp of the rating. If the `timestamp` is omitted, then all the ratings with given `userId` and `itemId` are deleted.
Overrides: object.__init__