Skip to content

Commit 5fcd0cc

Browse files
committed
Initial commit
1 parent 5eca268 commit 5fcd0cc

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

appwrite/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def __init__(self):
77
self._endpoint = 'https://appwrite.test/v1'
88
self._global_headers = {
99
'content-type': '',
10-
'x-sdk-version': 'appwrite:python:v1.0.0',
10+
'x-sdk-version': 'appwrite:python:1.0.0',
1111
}
1212

1313
def set_self_signed(self, status=True):

appwrite/services/auth.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ def oauth(self, provider, success='', failure=''):
6060
return self.client.call('get', path, {
6161
}, params)
6262

63-
def recovery(self, email, confirmation):
63+
def recovery(self, email, redirect):
6464
"""Password Recovery"""
6565

6666
params = {}
6767
path = '/auth/recovery'
6868
params['email'] = email
69-
params['confirmation'] = confirmation
69+
params['redirect'] = redirect
7070

7171
return self.client.call('post', path, {
7272
}, params)
@@ -84,14 +84,14 @@ def recovery_reset(self, user_id, token, password_a, password_b):
8484
return self.client.call('put', path, {
8585
}, params)
8686

87-
def register(self, email, password, confirmation, success='', failure='', name=''):
87+
def register(self, email, password, redirect, success, failure, name=''):
8888
"""Register User"""
8989

9090
params = {}
9191
path = '/auth/register'
9292
params['email'] = email
9393
params['password'] = password
94-
params['confirmation'] = confirmation
94+
params['redirect'] = redirect
9595
params['success'] = success
9696
params['failure'] = failure
9797
params['name'] = name
@@ -110,12 +110,12 @@ def confirm(self, user_id, token):
110110
return self.client.call('post', path, {
111111
}, params)
112112

113-
def confirm_resend(self, confirmation):
113+
def confirm_resend(self, redirect):
114114
"""Resend Confirmation"""
115115

116116
params = {}
117117
path = '/auth/register/confirm/resend'
118-
params['confirmation'] = confirmation
118+
params['redirect'] = redirect
119119

120120
return self.client.call('post', path, {
121121
}, params)

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
setup(
44
name = 'appwrite',
55
packages = ['appwrite'],
6-
version = 'v1.0.0',
6+
version = '1.0.0',
77
license='BSD-3-Clause',
88
description = 'Appwrite backend as a service cuts up to 70% of the time and costs required for building a modern application. We abstract and simplify common development tasks behind a REST APIs, to help you develop your app in a fast and secure way. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)',
99
author = 'Appwrite Team',
1010
author_email = 'team@appwrite.io',
1111
maintainer = 'Appwrite Team',
1212
maintainer_email = 'team@appwrite.io',
1313
url = 'https://appwrite.io/support',
14-
download_url='https://github.com/appwrite/sdk-for-python/archive/v1.0.0.tar.gz',
14+
download_url='https://github.com/appwrite/sdk-for-python/archive/1.0.0.tar.gz',
1515
# keywords = ['SOME', 'MEANINGFULL', 'KEYWORDS'],
1616
install_requires=[
1717
'requests',

0 commit comments

Comments
 (0)