-
Notifications
You must be signed in to change notification settings - Fork 2
erebus1 edited this page Oct 3, 2015
·
8 revisions
all api use json format
Firstly you should add user, by calling addUser:
{'task': 'addUser', "data":{"userProfile": {'age':10, 'sex':'Male', 'hobbies':['dolphins','cats'], 'userType':{'type1':0.2,'type2':0.2,'type3':0.2,'type4':0.2,'type5':0.2,}}}}
PARAMETERS:
age - int
sex - Male/Female
hobbies - list of one-word-strings
userType - you should choose 5 types of user types and provide dict - list: 'typeX':float in range [0-1]
optional:
alreadyGifted - specify which items has been already gifted (list of strings)
As a result you will get response with userId, you should remember it.