mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Updated SDKs
This commit is contained in:
1 parent
0e44a35215
commit
8d5e026773
19 files changed
+149
-32
No files matched your search
@@ -25,12 +25,12 @@ class Auth(Service):
|
||||
return self.client.call('delete', path, {
|
||||
}, params)
|
||||
|
||||
def logout_by_session(self, user_id):
|
||||
def logout_by_session(self, id):
|
||||
"""Logout Specific Session"""
|
||||
|
||||
params = {}
|
||||
path = '/auth/logout/{userId}'
|
||||
path.replace('{userId}', user_id)
|
||||
path = '/auth/logout/{id}'
|
||||
path.replace('{id}', id)
|
||||
|
||||
return self.client.call('delete', path, {
|
||||
}, params)
|
||||
|
||||
@@ -52,6 +52,18 @@ class Avatars(Service):
|
||||
return self.client.call('get', path, {
|
||||
}, params)
|
||||
|
||||
def get_image(self, url, width=400, height=400):
|
||||
"""Get image from and HTTP URL and crop to any size."""
|
||||
|
||||
params = {}
|
||||
path = '/avatars/image'
|
||||
params['url'] = url
|
||||
params['width'] = width
|
||||
params['height'] = height
|
||||
|
||||
return self.client.call('get', path, {
|
||||
}, params)
|
||||
|
||||
def get_q_r(self, text, size=400, margin=1, download=0):
|
||||
"""Text to QR Generator"""
|
||||
|
||||
|
||||
Reference in new issue
Block a user