Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 9 additions & 27 deletions async_appwrite/services/async_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ async def get(self):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down Expand Up @@ -87,9 +85,7 @@ async def list_identities(self, queries=None):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down Expand Up @@ -138,9 +134,7 @@ async def list_logs(self, queries=None):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down Expand Up @@ -281,9 +275,7 @@ async def list_mfa_factors(self):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand All @@ -296,9 +288,7 @@ async def get_mfa_recovery_codes(self):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down Expand Up @@ -403,9 +393,7 @@ async def get_prefs(self):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down Expand Up @@ -487,9 +475,7 @@ async def list_sessions(self):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down Expand Up @@ -628,9 +614,7 @@ async def get_session(self, session_id):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down Expand Up @@ -755,9 +739,7 @@ async def create_o_auth2_token(
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
response_type="location",
)
Expand Down
28 changes: 7 additions & 21 deletions async_appwrite/services/async_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ async def list_buckets(self, queries=None, search=None):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down Expand Up @@ -82,9 +80,7 @@ async def get_bucket(self, bucket_id):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down Expand Up @@ -167,9 +163,7 @@ async def list_files(self, bucket_id, queries=None, search=None):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down Expand Up @@ -228,9 +222,7 @@ async def get_file(self, bucket_id, file_id):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down Expand Up @@ -300,9 +292,7 @@ async def get_file_download(self, bucket_id, file_id):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down Expand Up @@ -350,9 +340,7 @@ async def get_file_preview(
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand All @@ -373,8 +361,6 @@ async def get_file_view(self, bucket_id, file_id):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)
20 changes: 5 additions & 15 deletions async_appwrite/services/async_teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ async def list(self, queries=None, search=None):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down Expand Up @@ -63,9 +61,7 @@ async def get(self, team_id):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down Expand Up @@ -128,9 +124,7 @@ async def list_memberships(self, team_id, queries=None, search=None):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down Expand Up @@ -182,9 +176,7 @@ async def get_membership(self, team_id, membership_id):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down Expand Up @@ -284,9 +276,7 @@ async def get_prefs(self, team_id):
return await self.client.call(
"get",
api_path,
{
"content-type": "application/json",
},
{},
api_params,
)

Expand Down
Loading