mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Update generated docs
This commit is contained in:
1 parent
3826937a7b
commit
65fec6b954
2541 files changed
+38892
No files matched your search
@@ -0,0 +1,14 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.teams import Teams
|
||||
|
||||
client = Client()
|
||||
|
||||
(client
|
||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
)
|
||||
|
||||
teams = Teams(client)
|
||||
|
||||
result = teams.create_membership('[TEAM_ID]', 'email@example.com', [], 'https://example.com')
|
||||
@@ -0,0 +1,14 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.teams import Teams
|
||||
|
||||
client = Client()
|
||||
|
||||
(client
|
||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
)
|
||||
|
||||
teams = Teams(client)
|
||||
|
||||
result = teams.create('[TEAM_ID]', '[NAME]')
|
||||
@@ -0,0 +1,14 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.teams import Teams
|
||||
|
||||
client = Client()
|
||||
|
||||
(client
|
||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
)
|
||||
|
||||
teams = Teams(client)
|
||||
|
||||
result = teams.delete_membership('[TEAM_ID]', '[MEMBERSHIP_ID]')
|
||||
@@ -0,0 +1,14 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.teams import Teams
|
||||
|
||||
client = Client()
|
||||
|
||||
(client
|
||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
)
|
||||
|
||||
teams = Teams(client)
|
||||
|
||||
result = teams.delete('[TEAM_ID]')
|
||||
@@ -0,0 +1,14 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.teams import Teams
|
||||
|
||||
client = Client()
|
||||
|
||||
(client
|
||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
)
|
||||
|
||||
teams = Teams(client)
|
||||
|
||||
result = teams.get_membership('[TEAM_ID]', '[MEMBERSHIP_ID]')
|
||||
@@ -0,0 +1,14 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.teams import Teams
|
||||
|
||||
client = Client()
|
||||
|
||||
(client
|
||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
)
|
||||
|
||||
teams = Teams(client)
|
||||
|
||||
result = teams.get('[TEAM_ID]')
|
||||
@@ -0,0 +1,14 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.teams import Teams
|
||||
|
||||
client = Client()
|
||||
|
||||
(client
|
||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
)
|
||||
|
||||
teams = Teams(client)
|
||||
|
||||
result = teams.list_memberships('[TEAM_ID]')
|
||||
@@ -0,0 +1,14 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.teams import Teams
|
||||
|
||||
client = Client()
|
||||
|
||||
(client
|
||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
)
|
||||
|
||||
teams = Teams(client)
|
||||
|
||||
result = teams.list()
|
||||
@@ -0,0 +1,14 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.teams import Teams
|
||||
|
||||
client = Client()
|
||||
|
||||
(client
|
||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
)
|
||||
|
||||
teams = Teams(client)
|
||||
|
||||
result = teams.update_membership_roles('[TEAM_ID]', '[MEMBERSHIP_ID]', [])
|
||||
@@ -0,0 +1,14 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.teams import Teams
|
||||
|
||||
client = Client()
|
||||
|
||||
(client
|
||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_jwt('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ...') # Your secret JSON Web Token
|
||||
)
|
||||
|
||||
teams = Teams(client)
|
||||
|
||||
result = teams.update_membership_status('[TEAM_ID]', '[MEMBERSHIP_ID]', '[USER_ID]', '[SECRET]')
|
||||
@@ -0,0 +1,14 @@
|
||||
from appwrite.client import Client
|
||||
from appwrite.services.teams import Teams
|
||||
|
||||
client = Client()
|
||||
|
||||
(client
|
||||
.set_endpoint('https://[HOSTNAME_OR_IP]/v1') # Your API Endpoint
|
||||
.set_project('5df5acd0d48c2') # Your project ID
|
||||
.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
|
||||
)
|
||||
|
||||
teams = Teams(client)
|
||||
|
||||
result = teams.update('[TEAM_ID]', '[NAME]')
|
||||
Reference in new issue
Block a user