Merge remote-tracking branch 'origin/main' into 1.7.x

# Conflicts:
#	app/config/specs/open-api3-1.7.x-console.json
#	app/config/specs/open-api3-1.7.x-server.json
#	app/config/specs/open-api3-latest-console.json
#	app/config/specs/open-api3-latest-server.json
#	app/config/specs/swagger2-1.7.x-console.json
#	app/config/specs/swagger2-1.7.x-server.json
#	app/config/specs/swagger2-latest-console.json
#	app/config/specs/swagger2-latest-server.json
#	app/init/constants.php
#	composer.lock
#	docs/references/databases/upsert-documents.md
#	tests/e2e/Services/Account/AccountCustomClientTest.php
This commit is contained in:
Jake Barnby
2025-07-21 19:22:15 +12:00
316 changed files with 4917 additions and 3588 deletions
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateAnonymousSession(
)
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateEmailPasswordSession(
"email@example.com",
"password",
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateEmailToken(
"<USER_ID>",
"email@example.com",
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateJWT(
)
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateMagicURLToken(
"<USER_ID>",
"email@example.com",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateMfaAuthenticator(
"totp",
)
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateMfaChallenge(
"email",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateMfaRecoveryCodes(
)
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateOAuth2Token(
"amazon",
account.WithCreateOAuth2TokenSuccess("https://example.com"),
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreatePhoneToken(
"<USER_ID>",
"+12065550100",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreatePhoneVerification(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateRecovery(
"email@example.com",
"https://example.com",
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateSession(
"<USER_ID>",
"<SECRET>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateVerification(
"https://example.com",
)
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.Create(
"<USER_ID>",
"email@example.com",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.DeleteIdentity(
"<IDENTITY_ID>",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.DeleteMfaAuthenticator(
"totp",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.DeleteSession(
"<SESSION_ID>",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.DeleteSessions(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.GetMfaRecoveryCodes(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.GetPrefs(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.GetSession(
"<SESSION_ID>",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.Get(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.ListIdentities(
account.WithListIdentitiesQueries([]interface{}{}),
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.ListLogs(
account.WithListLogsQueries([]interface{}{}),
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.ListMfaFactors(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.ListSessions(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateEmail(
"email@example.com",
"password",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateMFA(
false,
)
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateMagicURLSession(
"<USER_ID>",
"<SECRET>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateMfaAuthenticator(
"totp",
"<OTP>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateMfaChallenge(
"<CHALLENGE_ID>",
"<OTP>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateMfaRecoveryCodes(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateName(
"<NAME>",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdatePassword(
"",
account.WithUpdatePasswordOldPassword("password"),
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdatePhoneSession(
"<USER_ID>",
"<SECRET>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdatePhoneVerification(
"<USER_ID>",
"<SECRET>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdatePhone(
"+12065550100",
"password",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdatePrefs(
map[string]interface{}{},
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateRecovery(
"<USER_ID>",
"<SECRET>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateSession(
"<SESSION_ID>",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateStatus(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateVerification(
"<USER_ID>",
"<SECRET>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := avatars.NewAvatars(client)
service := avatars.New(client)
response, error := service.GetBrowser(
"aa",
avatars.WithGetBrowserWidth(0),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := avatars.NewAvatars(client)
service := avatars.New(client)
response, error := service.GetCreditCard(
"amex",
avatars.WithGetCreditCardWidth(0),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := avatars.NewAvatars(client)
service := avatars.New(client)
response, error := service.GetFavicon(
"https://example.com",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := avatars.NewAvatars(client)
service := avatars.New(client)
response, error := service.GetFlag(
"af",
avatars.WithGetFlagWidth(0),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := avatars.NewAvatars(client)
service := avatars.New(client)
response, error := service.GetImage(
"https://example.com",
avatars.WithGetImageWidth(0),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := avatars.NewAvatars(client)
service := avatars.New(client)
response, error := service.GetInitials(
avatars.WithGetInitialsName("<NAME>"),
avatars.WithGetInitialsWidth(0),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := avatars.NewAvatars(client)
service := avatars.New(client)
response, error := service.GetQR(
"<TEXT>",
avatars.WithGetQRSize(1),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateBooleanAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateCollection(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateDatetimeAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,14 +7,14 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithSession("") // The user session to authenticate with
client.WithKey("<YOUR_API_KEY>") // Your secret API key
client.WithJWT("<YOUR_JWT>") // Your secret JSON Web Token
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetSession("") // The user session to authenticate with
client.SetKey("<YOUR_API_KEY>") // Your secret API key
client.SetJWT("<YOUR_JWT>") // Your secret JSON Web Token
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateDocument(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateDocuments(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateEmailAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateEnumAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateFloatAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateIndex(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateIntegerAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateIpAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateRelationshipAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateStringAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateUrlAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.Create(
"<DATABASE_ID>",
"<NAME>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.DeleteAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.DeleteCollection(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.DeleteDocument(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.DeleteDocuments(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.DeleteIndex(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.Delete(
"<DATABASE_ID>",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.GetAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.GetCollection(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.GetDocument(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.GetIndex(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.Get(
"<DATABASE_ID>",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.ListAttributes(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.ListCollections(
"<DATABASE_ID>",
databases.WithListCollectionsQueries([]interface{}{}),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.ListDocuments(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.ListIndexes(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.List(
databases.WithListQueries([]interface{}{}),
databases.WithListSearch("<SEARCH>"),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpdateBooleanAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpdateCollection(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpdateDatetimeAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpdateDocument(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpdateDocuments(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpdateEmailAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpdateEnumAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpdateFloatAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpdateIntegerAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpdateIpAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpdateRelationshipAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpdateStringAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpdateUrlAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.Update(
"<DATABASE_ID>",
"<NAME>",
@@ -0,0 +1,30 @@
package main
import (
"fmt"
"github.com/appwrite/sdk-for-go/client"
"github.com/appwrite/sdk-for-go/databases"
)
func main() {
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
service := databases.New(client)
response, error := service.UpsertDocument(
"<DATABASE_ID>",
"<COLLECTION_ID>",
"<DOCUMENT_ID>",
map[string]interface{}{},
databases.WithUpsertDocumentPermissions(interface{}{"read("any")"}),
)
if error != nil {
panic(error)
}
fmt.Println(response)
}
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpsertDocuments(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := functions.NewFunctions(client)
service := functions.New(client)
response, error := service.CreateDeployment(
"<FUNCTION_ID>",
file.NewInputFile("/path/to/file.png", "file.png"),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := functions.NewFunctions(client)
service := functions.New(client)
response, error := service.CreateDuplicateDeployment(
"<FUNCTION_ID>",
"<DEPLOYMENT_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := functions.NewFunctions(client)
service := functions.New(client)
response, error := service.CreateExecution(
"<FUNCTION_ID>",
functions.WithCreateExecutionBody("<BODY>"),

Some files were not shown because too many files have changed in this diff Show More