-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
262 changed files
with
2,111 additions
and
1,782 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
appwrite/enums/smtp_encryption.py → appwrite/enums/encryption.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from enum import Enum | ||
|
||
class SMTPEncryption(Enum): | ||
class Encryption(Enum): | ||
NONE = "none" | ||
SSL = "ssl" | ||
TLS = "tls" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,39 @@ | ||
from enum import Enum | ||
|
||
class Runtime(Enum): | ||
NODE145 = "node-14.5" | ||
NODE160 = "node-16.0" | ||
NODE180 = "node-18.0" | ||
NODE190 = "node-19.0" | ||
NODE200 = "node-20.0" | ||
PHP80 = "php-8.0" | ||
PHP81 = "php-8.1" | ||
PHP82 = "php-8.2" | ||
RUBY30 = "ruby-3.0" | ||
RUBY31 = "ruby-3.1" | ||
RUBY32 = "ruby-3.2" | ||
PYTHON38 = "python-3.8" | ||
PYTHON39 = "python-3.9" | ||
PYTHON310 = "python-3.10" | ||
PYTHON311 = "python-3.11" | ||
PYTHON312 = "python-3.12" | ||
DART215 = "dart-2.15" | ||
DART216 = "dart-2.16" | ||
DART217 = "dart-2.17" | ||
DART218 = "dart-2.18" | ||
DART30 = "dart-3.0" | ||
DART31 = "dart-3.1" | ||
DOTNET31 = "dotnet-3.1" | ||
DOTNET60 = "dotnet-6.0" | ||
DOTNET70 = "dotnet-7.0" | ||
JAVA80 = "java-8.0" | ||
JAVA110 = "java-11.0" | ||
JAVA170 = "java-17.0" | ||
JAVA180 = "java-18.0" | ||
SWIFT55 = "swift-5.5" | ||
SWIFT58 = "swift-5.8" | ||
KOTLIN16 = "kotlin-1.6" | ||
KOTLIN18 = "kotlin-1.8" | ||
CPP17 = "cpp-17" | ||
CPP20 = "cpp-20" | ||
BUN10 = "bun-1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
from appwrite.client import Client | ||
from Appwrite.enums import AuthenticatorType | ||
from appwrite.enums import AuthenticatorType | ||
|
||
client = Client() | ||
|
||
(client | ||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint | ||
.set_project('5df5acd0d48c2') # Your project ID | ||
.set_session('') # The user session to authenticate with | ||
) | ||
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint | ||
client.set_project('5df5acd0d48c2') # Your project ID | ||
client.set_session('') # The user session to authenticate with | ||
|
||
account = Account(client) | ||
|
||
result = account.add_authenticator(AuthenticatorType.TOTP) | ||
result = account.add_authenticator( | ||
type = AuthenticatorType.TOTP | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from appwrite.client import Client | ||
|
||
client = Client() | ||
|
||
(client | ||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint | ||
.set_project('5df5acd0d48c2') # Your project ID | ||
) | ||
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint | ||
client.set_project('5df5acd0d48c2') # Your project ID | ||
|
||
account = Account(client) | ||
|
||
result = account.create_email_password_session('email@example.com', 'password') | ||
result = account.create_email_password_session( | ||
email = 'email@example.com', | ||
password = 'password' | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
from appwrite.client import Client | ||
|
||
client = Client() | ||
|
||
(client | ||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint | ||
.set_project('5df5acd0d48c2') # Your project ID | ||
) | ||
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint | ||
client.set_project('5df5acd0d48c2') # Your project ID | ||
|
||
account = Account(client) | ||
|
||
result = account.create_email_token('[USER_ID]', 'email@example.com') | ||
result = account.create_email_token( | ||
user_id = '[USER_ID]', | ||
email = 'email@example.com', | ||
phrase = False # optional | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
from appwrite.client import Client | ||
|
||
client = Client() | ||
|
||
(client | ||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint | ||
.set_project('5df5acd0d48c2') # Your project ID | ||
) | ||
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint | ||
client.set_project('5df5acd0d48c2') # Your project ID | ||
|
||
account = Account(client) | ||
|
||
result = account.create_magic_url_token('[USER_ID]', 'email@example.com') | ||
result = account.create_magic_url_token( | ||
user_id = '[USER_ID]', | ||
email = 'email@example.com', | ||
url = 'https://example.com', # optional | ||
phrase = False # optional | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
from appwrite.client import Client | ||
from Appwrite.enums import OAuthProvider | ||
from appwrite.enums import OAuthProvider | ||
|
||
client = Client() | ||
|
||
(client | ||
.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint | ||
.set_project('5df5acd0d48c2') # Your project ID | ||
) | ||
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint | ||
client.set_project('5df5acd0d48c2') # Your project ID | ||
|
||
account = Account(client) | ||
|
||
result = account.create_o_auth2_session(OAuthProvider.AMAZON) | ||
result = account.create_o_auth2_session( | ||
provider = OAuthProvider.AMAZON, | ||
success = 'https://example.com', # optional | ||
failure = 'https://example.com', # optional | ||
token = False, # optional | ||
scopes = [] # optional | ||
) |
Oops, something went wrong.