Skip to content
Merged
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
20 changes: 10 additions & 10 deletions examples/2.0.x/client-apple/examples/databases/create-operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ let databases = Databases(client)
let transaction = try await databases.createOperations(
transactionId: "<TRANSACTION_ID>",
operations: [
{
"action": "create",
"databaseId": "<DATABASE_ID>",
"collectionId": "<COLLECTION_ID>",
"documentId": "<DOCUMENT_ID>",
"data": {
"name": "Walter O'Brien"
}
}
] // optional
[
"action": "create",
"databaseId": "<DATABASE_ID>",
"collectionId": "<COLLECTION_ID>",
"documentId": "<DOCUMENT_ID>",
"data": [
"name": "Walter O'Brien"
]
]
] // optional
)

```
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ let documentsDB = DocumentsDB(client)
let transaction = try await documentsDB.createOperations(
transactionId: "<TRANSACTION_ID>",
operations: [
{
"action": "create",
"databaseId": "<DATABASE_ID>",
"collectionId": "<COLLECTION_ID>",
"documentId": "<DOCUMENT_ID>",
"data": {
"name": "Walter O'Brien"
}
}
] // optional
[
"action": "create",
"databaseId": "<DATABASE_ID>",
"collectionId": "<COLLECTION_ID>",
"documentId": "<DOCUMENT_ID>",
"data": [
"name": "Walter O'Brien"
]
]
] // optional
)

```
20 changes: 10 additions & 10 deletions examples/2.0.x/client-apple/examples/tablesdb/create-operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ let tablesDB = TablesDB(client)
let transaction = try await tablesDB.createOperations(
transactionId: "<TRANSACTION_ID>",
operations: [
{
"action": "create",
"databaseId": "<DATABASE_ID>",
"tableId": "<TABLE_ID>",
"rowId": "<ROW_ID>",
"data": {
"name": "Walter O'Brien"
}
}
] // optional
[
"action": "create",
"databaseId": "<DATABASE_ID>",
"tableId": "<TABLE_ID>",
"rowId": "<ROW_ID>",
"data": [
"name": "Walter O'Brien"
]
]
] // optional
)

```
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ let document = try await vectorsDB.createDocument(
documentId: "<DOCUMENT_ID>",
data: [
"embeddings": [
"0": 0.12,
"1": -0.55,
"2": 0.88,
"3": 1.02
0.12,
-0.55,
0.88,
1.02
],
"metadata": [
"key": "value"
Expand Down
20 changes: 10 additions & 10 deletions examples/2.0.x/client-apple/examples/vectorsdb/create-operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ let vectorsDB = VectorsDB(client)
let transaction = try await vectorsDB.createOperations(
transactionId: "<TRANSACTION_ID>",
operations: [
{
"action": "create",
"databaseId": "<DATABASE_ID>",
"collectionId": "<COLLECTION_ID>",
"documentId": "<DOCUMENT_ID>",
"data": {
"name": "Walter O'Brien"
}
}
] // optional
[
"action": "create",
"databaseId": "<DATABASE_ID>",
"collectionId": "<COLLECTION_ID>",
"documentId": "<DOCUMENT_ID>",
"data": [
"name": "Walter O'Brien"
]
]
] // optional
)

```
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/account/identities/{identityId} HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/account/mfa/authenticators/{type} HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/account/targets/{targetId}/push HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/account/sessions/{sessionId} HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/account/sessions HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/databases/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/databases/transactions/{transactionId} HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/documentsdb/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/documentsdb/transactions/{transactionId} HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/messaging/topics/{topicId}/subscribers/{subscriberId} HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
1 change: 1 addition & 0 deletions examples/2.0.x/client-rest/examples/presences/delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/presences/{presenceId} HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
1 change: 1 addition & 0 deletions examples/2.0.x/client-rest/examples/storage/delete-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/storage/buckets/{bucketId}/files/{fileId} HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
1 change: 1 addition & 0 deletions examples/2.0.x/client-rest/examples/tablesdb/delete-row.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId} HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/tablesdb/transactions/{transactionId} HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/teams/{teamId}/memberships/{membershipId} HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
1 change: 1 addition & 0 deletions examples/2.0.x/client-rest/examples/teams/delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/teams/{teamId} HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/vectorsdb/{databaseId}/collections/{collectionId}/documents/{documentId} HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
DELETE /v1/vectorsdb/transactions/{transactionId} HTTP/1.1
Host: cloud.appwrite.io
Content-Type: application/json
Accept: application/json
X-Appwrite-Response-Format: 2.0.0
X-Appwrite-Project: <YOUR_PROJECT_ID>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```bash
appwrite project update-o-auth-2-kakao
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```bash
appwrite project update-o-auth-2-tik-tok
```
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ result: DnsRecord = domains.create_record_mx(
name = '',
value = '<VALUE>',
ttl = 1,
priority = None,
priority = 0,
comment = '<COMMENT>' # optional
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ result: DnsRecord = domains.create_record_srv(
name = '',
value = '<VALUE>',
ttl = 1,
priority = None,
weight = None,
port = None,
priority = 0,
weight = 0,
port = 0,
comment = '<COMMENT>' # optional
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ result: DnsRecord = domains.update_record_mx(
name = '',
value = '<VALUE>',
ttl = 1,
priority = None,
priority = 0,
comment = '<COMMENT>' # optional
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ result: DnsRecord = domains.update_record_srv(
name = '',
value = '<VALUE>',
ttl = 1,
priority = None,
weight = None,
port = None,
priority = 0,
weight = 0,
port = 0,
comment = '<COMMENT>' # optional
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ from appwrite_console.models import OAuth2Apple
from appwrite_console.models import OAuth2Okta
from appwrite_console.models import OAuth2Kick
from appwrite_console.models import OAuth2Microsoft
from appwrite_console.models import OAuth2TikTok
from appwrite_console.models import OAuth2Kakao
from typing import Union
from appwrite_console.enums import ProjectOAuthProviderId

Expand All @@ -53,7 +55,7 @@ client.set_project('<YOUR_PROJECT_ID>') # Your project ID

project = Project(client)

result: Union[OAuth2Github, OAuth2Discord, OAuth2Figma, OAuth2Dropbox, OAuth2Dailymotion, OAuth2Bitbucket, OAuth2Bitly, OAuth2Box, OAuth2Autodesk, OAuth2Google, OAuth2Zoom, OAuth2Zoho, OAuth2Yandex, OAuth2X, OAuth2WordPress, OAuth2Twitch, OAuth2Stripe, OAuth2Spotify, OAuth2Slack, OAuth2Podio, OAuth2Notion, OAuth2Salesforce, OAuth2Yahoo, OAuth2HuggingFace, OAuth2Resend, OAuth2Cloudflare, OAuth2Linkedin, OAuth2Disqus, OAuth2Amazon, OAuth2Etsy, OAuth2Facebook, OAuth2Tradeshift, OAuth2Paypal, OAuth2Gitlab, OAuth2Authentik, OAuth2Auth0, OAuth2FusionAuth, OAuth2Keycloak, OAuth2Oidc, OAuth2Apple, OAuth2Okta, OAuth2Kick, OAuth2Microsoft] = project.get_o_auth2_provider(
result: Union[OAuth2Github, OAuth2Discord, OAuth2Figma, OAuth2Dropbox, OAuth2Dailymotion, OAuth2Bitbucket, OAuth2Bitly, OAuth2Box, OAuth2Autodesk, OAuth2Google, OAuth2Zoom, OAuth2Zoho, OAuth2Yandex, OAuth2X, OAuth2WordPress, OAuth2Twitch, OAuth2Stripe, OAuth2Spotify, OAuth2Slack, OAuth2Podio, OAuth2Notion, OAuth2Salesforce, OAuth2Yahoo, OAuth2HuggingFace, OAuth2Resend, OAuth2Cloudflare, OAuth2Linkedin, OAuth2Disqus, OAuth2Amazon, OAuth2Etsy, OAuth2Facebook, OAuth2Tradeshift, OAuth2Paypal, OAuth2Gitlab, OAuth2Authentik, OAuth2Auth0, OAuth2FusionAuth, OAuth2Keycloak, OAuth2Oidc, OAuth2Apple, OAuth2Okta, OAuth2Kick, OAuth2Microsoft, OAuth2TikTok, OAuth2Kakao] = project.get_o_auth2_provider(
provider_id = ProjectOAuthProviderId.AMAZON
)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
```python
from appwrite_console.client import Client
from appwrite_console.services.project import Project
from appwrite_console.models import OAuth2Kakao

client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
client.set_project('<YOUR_PROJECT_ID>') # Your project ID

project = Project(client)

result: OAuth2Kakao = project.update_o_auth2_kakao(
client_id = '<CLIENT_ID>', # optional
client_secret = '<CLIENT_SECRET>', # optional
enabled = False # optional
)

print(result.model_dump())
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
```python
from appwrite_console.client import Client
from appwrite_console.services.project import Project
from appwrite_console.models import OAuth2TikTok

client = Client()
client.set_endpoint('https://<REGION>.cloud.appwrite.io/v1') # Your API Endpoint
client.set_project('<YOUR_PROJECT_ID>') # Your project ID

project = Project(client)

result: OAuth2TikTok = project.update_o_auth2_tik_tok(
client_id = '<CLIENT_ID>', # optional
client_secret = '<CLIENT_SECRET>', # optional
enabled = False # optional
)

print(result.model_dump())
```
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const result = await domains.createRecordMX({
name: '',
value: '<VALUE>',
ttl: 1,
priority: null,
priority: 0,
comment: '<COMMENT>', // optional
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const result = await domains.createRecordSRV({
name: '',
value: '<VALUE>',
ttl: 1,
priority: null,
weight: null,
port: null,
priority: 0,
weight: 0,
port: 0,
comment: '<COMMENT>', // optional
});

Expand Down
Loading