Package recombee_api_client :: Package api_requests :: Module add_user
[hide private]
[frames] | no frames]

Source Code for Module recombee_api_client.api_requests.add_user

 1  from recombee_api_client.api_requests.request import Request 
 2  import uuid 
 3   
 4  DEFAULT = uuid.uuid4() 
 5   
6 -class AddUser(Request):
7 """ 8 Adds a new user to the database. 9 10 """ 11
12 - def __init__(self, user_id):
13 """ 14 Required parameters: 15 @param user_id: ID of the user to be added. 16 17 """ 18 self.user_id = user_id 19 self.timeout = 1000 20 self.ensure_https = False 21 self.method = 'put' 22 self.path = "/users/%s" % (self.quote_path_param(self.user_id))
23
24 - def get_body_parameters(self):
25 """ 26 Values of body parameters as a dictionary (name of parameter: value of the parameter). 27 """ 28 p = dict() 29 return p
30
31 - def get_query_parameters(self):
32 """ 33 Values of query parameters as a dictionary (name of parameter: value of the parameter). 34 """ 35 params = dict() 36 return params
37