users.py
1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
from floraconcierge.shortcuts import get_apiclient
def address_delete(id):
return get_apiclient().services.users.address_delete(id)
def address_list():
return get_apiclient().services.users.address_list()
def address_process(postObject):
return get_apiclient().services.users.address_process(postObject)
def check_password(email, password):
return get_apiclient().services.users.check_password(email, password)
def exists(email):
return get_apiclient().services.users.exists(email)
def get_logged_user():
return get_apiclient().services.users.get_logged_user()
def login(email, password=None, remember=None, checkip=None):
return get_apiclient().services.users.login(
email,
password=password,
remember=remember,
checkip=checkip)
def logout():
return get_apiclient().services.users.logout()
def registration(email):
return get_apiclient().services.users.registration(email)
def reset_password(email):
return get_apiclient().services.users.reset_password(email)
def social_signin(service, redirect_success, redirect_fail):
return get_apiclient().services.users.social_signin(
service,
redirect_success,
redirect_fail)
def update_info(
password=None,
name=None,
phone=None,
country=None,
city=None,
birthday=None,
flowers=None):
return get_apiclient().services.users.update_info(
password=password,
name=name,
phone=phone,
country=country,
city=city,
birthday=birthday,
flowers=flowers)